Filtering UiPath App Data on basis of Date in Data Service

I am trying to filter data in Data Service by Date. Whenever a date is selected in UiPath App interface, filetred data should come up. But assigning condition is throwing error. Anyone has done this before?

I have tried converting the expression in query builder to datetime (same as in Data Service) but it does not work.

@tilarapiyush

Try giving cdate(mainpage.newdate.value)

Cheers

Not working. Gives No Data. However I have found something. When I pass a default expression in query builder, the filtered data is showing up. I have given a future date so that atleast all records show up on the App when it loads.
The requirement is to get Date input from frontend for filtering.

Default expression in Qury Builder

App with cdate(mainpage.newdate.value)

App with Default expression in Query Builder.

@tilarapiyush

Can you try to print what cdate is giving as output please..also which date did you select when converting

I see date is blank as per screenshot

Cheers

Cdate is not giving any output. Filtration is not happening by NewDate filter. It is the default
expression which is filtering.

@tilarapiyush

cdate(mainpage.newdate.value.tostring) is working..but if date value is not given then it does not show anything try to select a date and it should be working

because when blank default date is taken and hence no filteration



cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.