Skip to main content

Is it possible to pass yesterdays date in the URL navigation from a lobby element?

We’re trying to filter work completed yesterday, or ideally, within last 24 hours. I’ve achieved roughly what we need, but hardcoded, which clearly isn’t the solution. But wondering how we can do it dynamically?

e.g. This works, but we need that date to change.

page/Mapage/MaintenanceEngineerTaskExecution/AssignmentCompleted;$filter=WorkFinishDate%20ge%202024-05-19

 

Any help appreciated.

As an extra… 

Note the existing lobby element in IFS that does something similar… but for today’s activities.

 

It navigates to a page and sets the date being equal to now. But I can’t make this work for work orders. 

I’d following to work…

page/MaintenanceEngineerTaskExecution/AssignmentCompleted?$filter=date(WorkFinishDate) ge date(now() - 1)

 

But this errors when it runs.

 

Any ideas?

Kind Regards,

James

 


Reply