Ok, then what I sent earlier is not what you need. That is for defaulting a value on an app to be saved in a field if you don't change it.
What you want is the conditions set on the app. Is this a hard or soft limit? Be aware hard limits are a lot easier to do.
If it is a hard limit, then open the app in App Designer and go to the Presentation and set a Where Clause. Something like: ReportDate >= SysDate - 60
or whatever it is in your database language.
------------------------------
Brad Delong
WDW
------------------------------
Original Message:
Sent: 08-01-2024 10:23
From: Ryan Medernach
Subject: Maximo default values in lookup - (Current date - 60) - is it possible ?
Thanks this is more what I'm looking for but the limitation may not work.
So I'm building a custom app where the user is allowed to select any workorder (historical or in any status) but I want to limit the workorders to the most recent as that will be the most common selection. I'll try and play around with what you have provided to see if I can do something similar with the defaultvalue filter.
Thanks
------------------------------
Ryan Medernach
MEG ENERGY
------------------------------
Original Message:
Sent: 07-31-2024 09:54
From: Stephen Hume
Subject: Maximo default values in lookup - (Current date - 60) - is it possible ?
Hi Ryan,
I tried the following in the ticket lookup (SQL Server Database)
added a whereclause to the lookup
whereclause=" convert(date, reportdate) > dateadd(dd,-30,getdate()) "
Then when I tested it in the work order tracking application - adding a related ticket, did the select value and only got the list of 9 tickets which were reported in the last month.
Not sure if this is what you are looking for. The only issue with this is that the lookup would never return any tickets that may have been reported more than 30 days prior.
regards,
Steve Hume
------------------------------
Stephen Hume
Sheffield Scientific LLC