Skip to Content
avatar image
Former Member

SAPUI5 IconTabBar Binding different associations

Hello together,

I created a SAPUI5 Master Detail Kapsel Application from WebIDE. I have a Icon Tab Bar with 2 fragments.


	<IconTabBar select="onDetailSelect" id="idIconTabBar">
		<IconTabFilter icon="sap-icon://hint">
<core:Fragment fragmentName="z.release.view.DetailInfoForm" type="XML"/>
<IconTabFilter text="Open" icon="sap-icon://accelerated" id="__filter1" modelContextChange="OnComment">
<core:Fragment fragmentName="z.release.view.DetailCommentForm" type="XML"/>

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:


bindView: function (sEntityPath) {
		var oView = this.getView();
		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) {
				} else {
			}, this));
		} else {

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?

app1.png (36.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers