Hello together,
I created a SAPUI5 Master Detail Kapsel Application from WebIDE. I have a Icon Tab Bar with 2 fragments.
Detail.view:
<IconTabBar select="onDetailSelect" id="idIconTabBar"> <items> <IconTabFilter icon="sap-icon://hint"> <content> <core:Fragment fragmentName="z.release.view.DetailInfoForm" type="XML"/> </content> </IconTabFilter> <IconTabFilter text="Open" icon="sap-icon://accelerated" id="__filter1" modelContextChange="OnComment"> <content> <core:Fragment fragmentName="z.release.view.DetailCommentForm" type="XML"/> </content> </IconTabFilter> </items> </IconTabBar>
If I run this application I can see both filters:
The problem is I see only on the first IconTabBar because the binding is created automatically from the template:
Detail.controller:
bindView: function (sEntityPath) { var oView = this.getView(); oView.bindElement(sEntityPath); var frag = this.byId("detailFragment"); frag.bindElement(sEntityPath + "/STEP_INFO"); //Check if the data is already on the client if (!oView.getModel().getData(sEntityPath)) { // Check that the entity specified actually was found. oView.getElementBinding().attachEventOnce("dataReceived", jQuery.proxy(function () { var oData = oView.getModel().getData(sEntityPath); if (!oData) { this.showEmptyView(); this.fireDetailNotFound(); } else { this.fireDetailChanged(sEntityPath); } }, this)); } else { this.fireDetailChanged(sEntityPath); } },
I need a binding where I can an other association like /STEP_INFO for every different IconTabFilter. How must I change the coding in the detail controller?