cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to bind sap.fe.macros table to data from association?

nikbereziuk
Explorer
0 Likes
1,321

Dear experts,

I hope this time anyone answers my question... 

I'm working on a FE app using Flexible Programming Model and OData V4. I'm trying to call a dialog upon pressing an action button on the object page. The dialog should contain a macros table with the data that comes from the root entity's association. Unfortunately, whatever I try, it doesn't display any data. Here's the working example where my dialog displays the root entity's data (which isn't what I want to achieve):

<macros:Table id="changeHistoryDialogTable"
metaPath="/BatchRelease/@com.sap.vocabularies.UI.v1.LineItem"
readOnly="true" />

 

But I want something like this:
 
<macros:Table id="changeHistoryDialogTable"
metaPath="/BatchRelease/_ChangeHistory/@com.sap.vocabularies.UI.v1.LineItem"
readOnly="true" />​
 
And it doesn't work. I tried passing contextPath, all possible combinations in the metaPath field - all in vain.
 
My Fiori version is 1.108.37 (S/4HANA On-Prem 2022)
 
I'd appreciate any suggestions.
Regrads,
Mykyta

Accepted Solutions (0)

Answers (0)