SeedCodeCalendar

Create Events

These are the docs for our FM10/11 version of the Pro Calendar. Docs for the newer, FM12 version of our calendar can be found here.

Can I make event records from outside the calendar, such as from portals on my other layouts?

Absolutely. In fact, you'll see an example of this on our Sample Contacts layout where we have a "new event for this contact" button. That button calls one of the scripts in the calendar specifically set up to receive commands from your other layouts (or even other files).

The script is called "Create Edit Delete Event ( SourceNo ) { Operation , DateStart , DateEnd , TimeStart , Resource... }" and it can take any number of parameters to let you manipulate events using your own scripts.

In our Sample Contacts example we send the following parameters to create a new record for the contact we're looking at:

"SourceNo = 1 ; Operation = Create ; ContactID = " & SampleContacts::_id & " ; DateStart = " & Get ( CurrentDate )

Read the comments at the beginning of this script to learn about other parameters you can send to this script.

(855) SEEDCODE
[email protected]
Follow us: