on 06-02-2023 10:21 AM
Hi,
I added this to the RAP metadata extension and maxItems is not working regardless of the value. SortOrder works ok though.
Why's that?
Thanks,
Javier
presentationVariant: [{
sortOrder: [{ by: 'TorId', direction: #ASC }],
maxItems: 5,
visualizations : [{ type: #AS_LINEITEM }]
}] }
Hi,
try to encapsulate your presenationVariant additionally in a selectionPresentationVariant, like this:
presentationVariant: [{
qualifier: 'pVariant'
sortOrder: [{ by: 'TorId', direction: #ASC }],
maxItems: 5,
visualizations : [{ type: #AS_LINEITEM }]
}]
selectionPresentationVariant: [{
presentationVariantQualifier: 'pVariant'
}]
Additionally, if you defined the presentationVariant in a Child Entity, you need to use the type #SELECTIONPRESENTATIONVARIANT_REFERENCE (and not #LINEITEM_REFERENCE) in the parent facet
@UI.facet:
[{
...
id: 'Child',
type: #SELECTIONPRESENTATIONVARIANT_REFERENCE,
// type: #LINEITEM_REFERENCE,
position: 20,
targetElement: '_Child'
}]
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.