on 07-13-2018 10:35 AM
Hello Experts,
I am trying to get the first IconTabBar container populated automatically on load of page. Since I am loading the data by passing the key of Icontabfilter in model so I am unable to load the container under first tab.
Please help me out.
Thanks.
Hi,
PFA
In View.xml:
<IconTabBar id="itb" expanded="{device>/isNoPhone}" select="handleTabSelect">
<items>
<IconTabFilter icon="sap-icon://employee" text="Personal Info" iconColor="Neutral" id="details" key="details" >
-------------
</IconTabFilter>
</items>
< /IconTabBar>
In controller.js:
onInit: function() {
this.getView().byId("details").setSelectedKey("details");
}
Regards,
Asha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In controller.js:
var oData = data.results;
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData(oData,"NamedModel");
for(i=0;i<oData.length;i++){
var LData = oData[i].des;
var oKey = this.getView().byId("detail").getSelectedKey();
Here Dynamically you can set Text
if(oKey == "detail"){
this.getView().byId("detail").setText("")
}
}
Thanks,
asha
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.