Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

detailPage content not rendering on splitApp reload

$
0
0

Hi All,

 

I'm working on splitApp,  where i want a table on say third detailPage when a button on second detail page is clicked.

 

Code on button:

 

var b1 = new sap.m.Button({text:"Action", press:function(){

   if(!sap.ui.getCore().byId("actionPage")){

       splitapp.addDetailPage(sap.ui.jsview("actionPage", "ticketloggingapplication.actionDetailPage"));       // initializing detail page

       }

            splitapp.toDetail('actionPage', 'flip');                                                                                           // navigating to detail page

       }

  }).addStyleClass("actionButton");

 

 

 

Code of Table on third detail page :

 

 

 

var oTable = new sap.m.Table("otable",{

  inset: true,

  popinDisplay:"Inline",

  headerText: "{i18n>ALERT_TBL_HDR}",

  //headerToolbar:new sap.m.Toolbar({content:[new sap.m.ToolbarSpacer(),FilterSortingButton]}).addStyleClass("tblToolBar"),

  mode: sap.m.ListMode.SingleSelectMaster,

  columns: [

           new sap.m.Column({

           header: new sap.m.Text({ text: "Severity" }).addStyleClass("columnText"),

           minScreenWidth: sap.m.ScreenSize.Small

           }),

           new sap.m.Column({ header: new sap.m.Text({ text: "Status" }).addStyleClass("columnText") }),

 

 

           new sap.m.Column({

           header: new sap.m.Text({ text: "File Name" }).addStyleClass("columnText"),

           hAlign: "Right",

           minScreenWidth: sap.m.ScreenSize.Desktop,

           demandPopin: true,

           popinDisplay: "Inline"

           }),

}

 

 

It is mandatory to give id in current scenario as i need this table in controller as well, on the first go page rendering is fine and content(table) is visible, while clicking same button again would not render page content (table), it is throwing common error : Adding duplicate id for which i have used following code:

 

if(sap.ui.getCore().byId("otable"))

  sap.ui.getCore().byId("otable").destroy();

 

How to make page render table or other page content everytime the button is clicked??

 

Please Hepl!

 

Regards,

Shalini Mathur

 

 

 

 

}


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>