Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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.

Tags:
Former Member
replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question