cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS Query selectionVariant Date-Field BRAIN 599

tnns
Explorer
0 Likes
632

Hi all,

I am currently trying to create a card within an overview page which is filtered by a selectionVariant - Filter (backend-annotations).

I'am using a CDS View with @Analyics.query: true.

It works fine with CalendarYear.

@Analytics.query: true

@UI.selectionVariant: [
{   
    qualifier: 'SelVarFilterYear2022',
    text: 'Filter by Year 2022' ,
    filter: 'CalendarYear >= "2022"' // is working
}]

But when I try to use CalendarDate the browser console logs error BRAIN 599 (For characteristic &, enter value in a permitted format).

filter: 'CalendarDate > "20220512"' // Error in browser Log

I tried to escape the quotation marks which helps not to get BRAIN 599. But the filter doesn't work.

filter: 'CalendarDate > \'20220512\' // no error in browser log, but does not work

Can anybody tell me, which format the annotation needs to work properly for date-fields?

Kind regards,

Stefan

Accepted Solutions (0)

Answers (0)

Ask a Question