SeedCodeCalendar

Jump To My Event

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 click a button in the calendar to see the event in one of my layouts?

Absolutely.

When you click on an event in the calendar it comes up in the Event Details mini window. We already have a script written that will close this window and take you to the event record in another layout in your solution.

So add a button to the Event Details window, and add the script "Jump to Event in My Layout ( Event ID )" to this button: add the field containing the primary key (unique ID) of your event as the script parameter. For example, this would be SampleEvents::_id in the sample events table that comes with the calendar.

Now edit the script "Jump to Event in My Layout ( Event ID )" and you'll see two areas that need you to modify them: the first specifies the layout you'd like to see you event in, and the second is a SetField that probably says Field Missing: you'll need to point that at the sample events field in your table so it looks something like this:

SetField [SampleEvents::_id; Get ( ScriptParameter )]

That's it!

Note that you may end up having one of these scripts for each source as each will have their own detail layout.

What if my layout is in another file?

If you want to see the event in a mini window first, and *then* jump to the layout in your file, you can use our script "Jump to Event in My Layout ( Event ID )" to call a script in your file, passing the event iD as a script parameter. The script in your file would then go to the right layout and perform a find for the eventID.

That is the easiest way.

If you want them to go right to the layout in your file when you first click on an event, you'll still write the same script in your file to find the event by event ID, but you'll call that script from within our script "Click in / Drag Event". If you have only one source in the calendar, you can replace everything between the comment "---------------- Else, display the selected record ----------------" and the comment " > > End If Mixed Sources" with a call to the script in your file, the script parameter containing the event ID would be $sc_UID

If you have more than one source this is trickier, and we can build this for you as a custom modification.

(855) SEEDCODE
[email protected]
Follow us: