on 2021 Apr 23 9:42 AM
Request clarification before answering.
Hi bsnorrason,
1. In your CDS View, add the following annotation to the date field.
@Consumption.filter.selectionType: #INTERVAL
PostingDate,
2. In manifest.json, add below settings as described in this document.
"filterSettings": {
"dateSettings":{
"useDateRange": true
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bsnorrason ,
In the SAPUI5 application the range can be added by:
Examples:
Code: Smart Filter Bar with useDateRangeType setting set to true - Samples - Demo Kit - SAPUI5 SDK
Code: Smart Filter Bar with controlConfiguration conditionType DateRangeType - Samples - Demo Kit - ...
BR,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To my knowledge there is not CDS annotation which allows to define that. In a Fiori Elements app you can define it like described here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm this seems like it should work but it doesn't.
The metadata is like this:
<Property sap:label="Date" Name="workDate" sap:display-format="Date" Type="Edm.DateTime" sap:filter-restriction="interval" Precision="0"/>
And the manifest:
"pages": {
"ListReport|ZCATSDB_VIEW": {
"entitySet": "ZCATSDB_VIEW",
"component": {
"name": "sap.suite.ui.generic.template.ListReport",
"list": true,
"settings": {
"filterSettings": {
"dateSettings": {
"useDateRange": true
}
},
"tableType": "AnalyticalTable",
"smartVariantManagement": true,
"condensedTableLayout": true
}
}
}
}
I'll give it a try in a fresh project and see if it works there.
User | Count |
---|---|
57 | |
10 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.