Hi Experts,
Need some help on rerender of controls.
1) Run the fiori Application
2) Go to the table Screen
3) Goto next View using Routing.
4) Click on Home Button of Fiori Launchpad and repeat the same steps to come to 2 view, The VIZContainer is not getting rendered.
There is no control error or any thing.
Do i have to use control.rerender().
The DoInit Method is called, But the VizContainer not rendered.
onInit : function() {
var oModel = new sap.ui.model.json.JSONModel();
var oJsonUrl = sap/opu/odata/sap/ZTM_GW_TENDER_BY_LANE_SRV/ZtmTenderByLaneCollection";
oModel.loadData(oJsonUrl, null, false);
this.vizContainer = this.getView().byId("idVizFrameBar");
this.droplist = this.getView().byId("idoSelect1");
this.vizContainer.setModel(oModel);
this.droplist.setModel(odataModel);
var data = [
[
{"name":"Carrier","type":"Dimension"},
{"name":"Location","type":"Dimension"},
{"name":"TotalCount","type":"Measure"},
{"name":"AcceptedCount","type":"Measure"},
],
"/d/results"
];
this.loadDataSet(data);
var oIcon1 = this.getView().byId("idoIcon1");
//oIcon2.setSrc("sap-icon://accept");
oIcon1.attachPress(function(oEvent) {
window.history.go(-1);
});
},