on 02-08-2018 9:05 AM
Hi All,
I am trying to create analytic chart card in OVP. I am getting hundreds of rows from backend and I want to restrict those to top 10 like we give $top=10 parameter in service url.
How can I achieve this through annotations?
I tried through Selection Variant but it takes only property path not custom parameter like $top or $skip.
Please suggest.
Thanks,
Harshita
Hi Harshita,
You can use maxItems in PresentationVariant for this as shown in the following example:
<Annotation Term="UI.PresentationVariant" Qualifier="SalesChart">
<Annotation Term="com.sap.vocabularies.Common.v1.Label" String="Sales in Descending Order"/>
<Record>
<PropertyValue Property="MaxItems" Int="5" />
<PropertyValue Property="GroupBy">
<Collection>
<PropertyPath>Country</PropertyPath>
</Collection>
</PropertyValue>
<PropertyValue Property="SortOrder">
<Collection>
<Record>
<PropertyValue Property="Property" PropertyPath="Sales" />
<PropertyValue Property="Descending" Boolean="true" />
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="Visualizations">
<Collection>
<AnnotationPath>@UI.Chart#SalesChart</AnnotationPath>
</Collection>
</PropertyValue>
</Record>
</Annotation>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi prasita.prabhakaran,
I am working with SAP OVP Analytical cards where by default applies $skip 0 & $top 100. But I need the my all data to be shown on the cards. Could you please let me know how to solve this issue.
When I see under the network tab the service call happens with global filters with $skip 0 & $top 100.
Please advice,
Thank You,
Srikar N
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.