Jump to content

WebFOCUS - Tips & Tricks tutorial sessions-  setting a custom default date in WebFOCUS Designer pages

Recommended Posts

This is a nice technique.
Playing around with this, it seems to work fine for a global variable in yyyymmdd format.
For defaulting to today’s date, a Designer Default value of &YYMD worked for me. 
For a date other than today, I coded this into the edasprof.prf to give me a date three months ago:

-SET &&DATE_MO3 = AYM(&DATEH6, -3, 'I6YYM') | &DATED;

Which assigned a value of 20240224 to the variable.  Then I put the global variable into Designer Default value:


When I run it, I see the desired date. 




  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...