Skip to main content
Question

Pass Yesterdays Date in URL from Lobby Element

  • May 20, 2024
  • 1 reply
  • 75 views

dfsjmarchant
Sidekick (Customer)
Forum|alt.badge.img+8

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.

1 reply

dfsjmarchant
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • 36 replies
  • May 21, 2024

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