How do I default the date range on the resource scheduling board to 60 days?
take a look at the epbinding of those date input boxes, it will be in format dataview.fieldname
put a row-update component in your Window_OnLoad Event, and set the appropriate dates in the row-update, in format ‘2025-09-05’ for a hardcoded date, or if you want to set today’s date, set it to {Constant.Today}, if you want to do other dates dynamically like “a week ago”, you’ll need to use a javascript expression: '#_new Date(Date.now() - 7 * 864e5).toISOString().slice(0,10)_#'
Change the “7” to however many days ago you would like the date to be.
Ill give you the solution because you lead me down the correct path. I had to do the following to update it to be 2 months our from the current date.
I had to make a copy of the following:
Form_OnLoad
SysInitTemplateViews
InitKeyFields
AfterInitKeyFields
I wanted the start box to stay current and the end box to be out 2 months instead of 1.
I used this code for the row update parameters under AfterInitKeyFields.
“#new Date(new Date().setMonth(new Date(‘{Constant.Today}’).getMonth() + 2)).toISOString()#”
Final results.
Awesome!
App Studio lets you hook an event to trigger after another event,
Probably you could make an event “AfterInitKeyFields_After” or something like that, set the trigger to be Event / After / AfterInitKeyFields then do your row update there, to avoid copying/changing existing events and make it easier to maintain in the future.
I forgot I could do that! Still learning all these new application studio things. I came from E10.2.500, and now I’m in a cloud environment.

