Skip to Content
1
May 29, 2020 at 02:35 AM

Fiori Elements consuming CDS with Optional Parameter

1194 Views

I am try to make a CDS parameter that I am consuming through a Fiori elements app optional. I understand that parameter integration with Fiori is relatively new, bit this seem very basic. I have tried the @Environment annotation without success, even though some of the other annotations do work.

@Consumption.defaultValue works

@EndUserText.label works

@Environment.systemField: #SYSTEM_DATE doesn't work

A second option would be to default the date on the initialization event, but I cant seem to bind to the parameter.

Any help would be appreciated. My fallback is to drop the parameter and make a custom date picker filter.

Thanks,Andrew