cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 Navigation from the table line item issue

0 Kudos

Hi Experts,

In the fiori app, we have 3 pages. Using - sap.ui.getCore().byId("idapp").to("idCompDetailsPage");  to navigate to an another view.

In the second view, we have the table with item navigation option. When the line item is getting pressed, based on the quantity it should navigate to the 3 rd view with the details of the that item.

For the first round it works fine. From the 2nd round on wards, Like after the navigation to 2nd view from the 3rd view, using back button, again from 2nd view table, if I press the different item it is not getting the details relevant of the next item (different item) that is not getting refreshed. it is showing the first pressed item details only.


During the debugging, it is not triggering the on before rendering event. I have written the code to fill the 3rd view in the on before rendering event only. For the first time it is going though that event and fills the details.

Could you please give me your inputs? thanks much for any help on this...

Example code html:

sap.ui.localResources("view");
           var Prodpage = sap.ui.view({

                    id:"idProdDetail",

                    viewName:"ZPRODORD_GI.view.ProductDetail",

                    type:sap.ui.core.mvc.ViewType.XML


........

      
    var app = new sap.m.App(
        {
            id:"idapp",
            pages:[compPage, serPage],
            initialPage:"idProdDetail"
        });
app.addPage(Prodpage);
app.placeAt("content");

Thanks,

Amudha

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Amudha,

Did you try onAfterRendering event as well?

Regards,

Sai Vellanki.