on 2023 Mar 30 5:12 PM
Hi Experts,
I created a standard report fiori list ung CAP CDS annotations. I have a filter bar with a filter for a date. At the moment, the user would need to click on the icon to show the value help dialog before the user is able to see the filter:
I wanted to have it directly on the filter bar instead so the user would no longer have to view the dialog.
Is there any way to achieve this via CAP CDS annotations?
Request clarification before answering.
Hello @amallari,
In CAP, there is no annotation for Date fields like we do in ABAP CDS.
Please use annotation Capabilities on filter to display the DatePicker:
annotate YOUR_ENTITY with @Capabilities : {
FilterRestrictions : {
$Type : 'Capabilities.FilterRestrictionsType',
RequiredProperties : [ YOUR_PROPERTY ],
FilterExpressionRestrictions : [
{
$Type : 'Capabilities.FilterExpressionRestrictionType',
Property : YOUR_PROPERTY,
AllowedExpressions : 'SingleRange' (please see documentation for other values)
}
]
}
};
Regards,
Sébastien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.