cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically set the metaPath in an xml fragment?

Francesca
Explorer

Hello,

What is the correct syntax for dynamically setting the 'metapath' in an xml fragment for a dynamically created page?

For a little context, I have a Fiori application based on an oData V4 service that I extended with a dynamic object page (using flexible programming model), and I'm having issues setting the metapath in the xml fragment. 
Hardcoding the metapath ("_association/@com.sap.vocabularies.UI.v1.LineItem") works fine, but I need to dynamically set it.
This is the way it's currently set: 

    <macros:Table
        id="MasterDataTableID"
        metaPath="{ path: `${RapEntityAssociation}/@com.sap.vocabularies.UI.v1.LineItem` }"
        readOnly="true"
        selectionMode="Multi"
        enableFullScreen="true"
        type="ResponsiveTable"
        personalization="Sort,Filter">
    </macros:Table>

Accepted Solutions (1)

Accepted Solutions (1)

MattDion
Participant

I opened an incident on the same topic, and SAP got back to me basically stating 'that is a good idea and something we thought about... maybe we'll add it in the future'. 

So for now, the metaPath attribute can only be specified as a string.

Francesca
Explorer
0 Kudos
Ah, well that's a little disappointing. Thank you for letting me know!

Answers (0)