SAPUI5에 대한 지식을 향상시키기 위해 몇 가지 예제를 수행했으며 ViewSettingsDialog 구성 요소를 사용할 때 특히 ViewSettingsCustomItem 구성 요소를 필터로 사용할 때 매우 이상한 동작을 발견했습니다.
컨트롤러에서 내 대화 상자를 다음과 같이 시작합니다.
onOrdersFilterPress: function(oEvent){
// Open the Table Setting dialog
if(!this._oDialog) {
this._oDialog = sap.ui.xmlfragment("pbarbosa.mom.view.OrdersFilter", this);
this.getView().addDependent(this._oDialog);
}
this._oDialog.open();
},
대화 상자에서 모델에 액세스 할 수 있도록 대화 상자를 기본보기의 자식으로 추가했는지 확인했습니다. 내 대화보기 (조각에 빌드 됨)에 다음 코드가 있습니다.
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<ViewSettingsDialog confirm="handleFilterConfirm">
<filterItems>
<ViewSettingsCustomItem id="idOrderDateFilterItem" text="{i18n>OrderDate}" key="OrderDateFilter">
<customControl>
<DateRangeSelection id="OrderDateRangeFilter" placeholder="{i18n>OrderDateFilterPlaceholder}"/>
</customControl>
</ViewSettingsCustomItem>
</filterItems>
</ViewSettingsDialog>
이제 이상한 동작은 필터 이름으로 {i18n> OrderDate}가 예상대로 표시된다는 것입니다. 즉, 모델을 사용할 수 있지만 DateRangeSelection 개체에 사용 된 자리 표시 자 {i18n> OrderDateFilterPlaceholder}는 그렇지 않습니다.
나는 입력과 같은 다른 구성 요소로 이것을 시도했고 같은 일이 일어나고 있습니다. 또한 똑같은 코드가 대화 상자 밖에 있으면 완벽하게 작동합니다.
여기에 문제가 있거나이 구성 요소에 잠재적 인 버그가 있습니까?
피드백 주셔서 감사합니다.
감사합니다, Pedro
여러 번의 재시도 및 임시 해결 방법을 통해 이에 대해 SAP에 결함을 공개하기로 결정했고 문제가 인정되었습니다.
추적 목적으로 링크를 따라갑니다 : https://github.com/SAP/openui5/issues/1068
감사합니다, Pedro
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다