×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Editing default time

Editing default time

Editing default time

(OP)
Hi,

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


Thanks

Jassen

RE: Editing default time

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close