cancel
Showing results for 
Search instead for 
Did you mean: 

Defaulting values to OVP's Card filters for an analytical chart card

uday_gubbala2
Active Contributor
0 Kudos

Hi Experts,

I have a analytical chart being displayed as one of the cards within an OVP. Based on the user's selection within the dropdown am filtering the chart below.

I have 2 special scenarios:

  1. For 1 of the options I need to trigger a request to show only the records where the current date is greater than the date within a particular CDS field. How can I have today's date filled in via annotations? I have hard coded a date in the code fragment below but would need to code it such that it always defaults to today's date.

2. For another option I need to be able to trigger a request like show me entries where the current date is greater than <CDS field1> but less than <CDS field 2>. When I look at the format of UI.SelectionRangeType it allows me to specify a condition against a single field. How can I specify a condition with a combination of 2 CDS fields?

Any inputs would be greatly appreciated. Thank you.

EDIT:

I tried exploring options to achieve this via controller extensions & modifyStartupExtension( ) was the closest but it would cater to only the default card filter while loading the page and my filters aren't the default filters so wouldn't be able to use that method

Accepted Solutions (0)

Answers (0)