cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all,

Is there a way to add a datepicker with time period value help like in the attached picture to a fiori list report based on a CDS view?
If so is there any documentation on how to do it?

Thanks,
Birgir

0 Likes
View Entire Topic
pfefferf
Active Contributor

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.

Former Member
0 Likes

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.