on 04-08-2024 9:58 AM
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.