Skip to content

Instantly share code, notes, and snippets.

@pandu536
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandu536/89001be32225b1c08638 to your computer and use it in GitHub Desktop.
Save pandu536/89001be32225b1c08638 to your computer and use it in GitHub Desktop.
sap.ui.jsview("greenfield_refinery.launchdashboard",{
/** Specifies the Controller belonging to this View.
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
* @memberOf greenfield_refinery.launchdashboard
*/
getControllerName :function(){
return "greenfield_refinery.launchdashboard";
},
/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
* Since the Controller is given to this method, its event handlers can be attached right away.
* @memberOf greenfield_refinery.launchdashboard
*/
createContent : function(oController){
var greenLayout = new sap.ui.commons.layout.MatrixLayout({
id:"matrixid",
layoutFixed :false,
widths:["25%","75%"]
});
var oTabStrip1 = new sap.ui.commons.TabStrip("TabStrip1");
var MonthlyView = sap.ui.view({id:"Monthlyview", viewName:"greenfield_refinery.Monthly", type:sap.ui.core.mvc.ViewType.JS});
oTabStrip1.createTab("Monthly",MonthlyView);
var DailyView = sap.ui.view({id:"Monthview", viewName:"greenfield_refinery.DailyGraphs", type:sap.ui.core.mvc.ViewType.JS});
var oTab2 = new sap.ui.commons.Tab("tab2", {title: new sap.ui.core.Title("Title3",{text:"Daily"})});
oTab2.setTooltip("Daily");
oTab2.addContent(DailyView);
var newsView = sap.ui.view({id:"table", viewName:"greenfield_refinery.flashnews", type:sap.ui.core.mvc.ViewType.JS});
var OperatingexpchartView = sap.ui.view({id:"operatingexpchart", viewName:"refinery_dashboard.Operatingexpenses", type:sap.ui.core.mvc.ViewType.JS});
var DashboardchartView = sap.ui.view({id:"grmchart", viewName:"refinery_dashboard.Dashboard", type:sap.ui.core.mvc.ViewType.JS});
var ProductionvsactualchartView = sap.ui.view({id:"prdvsacexpchart", viewName:"refinery_dashboard.prdvsac", type:sap.ui.core.mvc.ViewType.JS});
oTabStrip1.addTab(oTab2);
// greenLayout.addContent(newsView);
greenLayout.createRow(newsView,oTabStrip1);
return greenLayout;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment