cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the data or function in the main app from extended fiori application

nalamabhiram
Explorer
0 Kudos

Hi All,

I am trying to extend my inbox application.

when the item in list is clicked the details to be populated in the details screen.


I am able to extend the xml view of detail screen and add some fields in info icon tab.

i am able to manipulate the values in extended view with extended controller file.


Issue:

To fetch more details from backed I need to know which item is pressed in the list.


Is there any possibility to access the item pressed in the main list and to get existing data of the list.

so that  for additional fields I will do another read operation with help of order ID.

Is my approach correct..?

Regards,

Abhiram.

View Entire Topic
gill367
Active Contributor
0 Kudos

Hi Nalam;

When anything is selected in Master list of the Fiori inbox application.The refresh data method is called in the controller of detail view (S3.controller.js).


refreshData: function(oRefreshData) {

This particular function sets the data in a model named as 'detail'

detail model has a parameter called instanceID which will provide you the ID of the workitem.

so code like below will provide you the required ID.


this.getView().getModel("detail").getData().InstanceID

Then use this id to fetch the additional information,

Regards,

Sarbjeet Singh