Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing default time

Status
Not open for further replies.

kiltedjedi

Technical User
Feb 13, 2002
10
AU
Hi,

Has anyone managed to change the default time on the calendar.popup.g form? If so how did you do it?


Thanks

Jassen
 
Hi,

setting the default value kind of depends on how you are planning to open the calendar. This is because the calendar.popup.window RAD application (which displays the calendar.popup.g form) accepts a parameter for the default date.

You can see this if you open the calendar.popup.window application in the RAD Editor and Select the "View" button. The first panel displayed is the parameter panel, which shows the parameter fields (representing the parameters that can be sent to this particular application). In this case there is only one parameter: $INTO.DATE. If you click on the field displaying the parameter, select Help > Help on field, and then choose the Keywords tab, you can see the name of this field (in this case the field name is "record"). Knowing the field name is important because it is also the parameter name and if you want to send this application a default date parameter, you will have to do it in following format:

Parameter name:
record

Parameter value:
[a variable containing the default date, e.g. $pvm]

Note also that on that RAD application, the "process.calendar.date.selected" panel has the expression:

$INTO.DATE=$L.cal.out

This sets $INTO.DATE into whatever the user chose on the calendar.popup.g form; it also means that after the user clicks on OK, the variable you sent to the application (e.g. $pvm) will contain the date the user selected.

In any case, you were probably referring to executing the calendar from a link record. This can be accomplished by adding the expression

$L.cur.date=[date variable or expression here]

just before the expression "$fill.date.calendar..." in the Expressions array.

Note, though, that this changes the behaviour of the fill function slightly: if the user does not choose a date but clicks on Cancel, the default date will be posted to the field.

Hope this helps.

Best regards,

JJ

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top