on 01-02-2015 8:59 AM
Hi,
I tried to display Icontab filters in IconTabBar dynamically from Odata as per key and text combination with filter values as inputs.Please verify and share your suggetions to bind/set filters to the IconTabBar.
Below pseudo code I used
XML View :
<IconTabBar id="idIconTabBar" class="iconTabBarPaddingTop" select="chgCatgTabSelect"
expand="">
<items><IconTabFilter key="{ZCatg" text="{ZText}">
</IconTabFilter></items> <!-- sap.m.IconTab -->
<content></content> <!-- sap.ui.core.Control --> </IconTabBar>
Controller :
Note : supplier and suCatg data able to read succesfully but not items in IconTabBar.
filters = [ new sap.ui.model.Filter("Znr", sap.ui.model.FilterOperator.EQ, supplier),
new sap.ui.model.Filter("ZsuCatg", sap.ui.model.FilterOperator.EQ, suCatg) ];
Please let me know what should be syntax to pass above filter values and bind it to IconTab Filter items
this.getView().byId("idIconTabBar").getBinding("items").filter(filters);
Regards,
Koti Reddy
Hi,
Missed Entity set binding to items. Now used code as shown below which is working.
<IconTabBar id="idIconTabBar" class="iconTabBarPaddingTop" items="{/EntitySet}" select="chgCatgTabSelect"
expand="">
Regards,
Koti Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.