cancel
Showing results for 
Search instead for 
Did you mean: 

$top parameter in Annotations for SAP overview page

harshita_chaubey
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member103161
Contributor
0 Kudos

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>
Srikar
Active Participant

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

kachin_agarwal
Explorer
0 Kudos

HI srikarn,

I have the same issue. Did you find a solution?

Thanks,

Kachin

Answers (0)