SeedCodeCalendar12

Multiple Sources

SeedCodeCalendar12.MultipleSources History

Hide minor edits - Show changes to output

September 09, 2013, at 01:37 PM by 98.245.115.118 -
Changed lines 17-18 from:
Firstly, if there is only one source showing, when you create an event the calendar will create it in that source.
to:
First, if there is only one source showing, when you create an event the calendar will create it in that source.
Changed line 59 from:
-> '''5.''' Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source.
to:
-> '''5.''' Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add its number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source.
March 07, 2013, at 05:15 PM by 50.132.84.245 -
Added lines 15-26:
''How does the calendar decide which source to use for a new event?'''

Firstly, if there is only one source showing, when you create an event the calendar will create it in that source.

When multiple sources are showing we look to see if the "default sources for new events" is one of them. If it is, we create the event in that source. You can specify this default source toward the top of the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---".

If this default source is not one of the ones showing, we create the event in the first source showing.

So that's what happens when you just ask to create an event without specifying anything further: that is, when you shift-click in the calendar or click the "+ new" button. The calendar does, however, have an API that will let you make your own "+" button to create events in any source you want. You can use this to make a "new todo" button, for example. You'd do this by calling the script "Create Edit Delete Event ( SourceNo )..."

Read the comments at the head of that script to learn more about how to use it to make new events.

August 17, 2012, at 05:55 PM by 107.2.189.216 -
Changed lines 45-46 from:
-> '''4.''' Create an Event Detail layout for this source: this is the small layout you'll use to view the event when you click on it in the calendar (this is the layout you named next to "display layout" on the Required Layout Info tab). We recommend creating a small detail layout even if you want folks to jump to a layout you already have (like an orders layout) when clicking on an event. Having a small mini-window come up can help users quickly look at an event and then close that window without loosing their place in the calendar. Add a button to this layout to jump them to your main layout if they need more. Here's how: [[jump to my event]].
to:
-> '''4.''' Create an Event Detail layout for this source: this is the small layout you'll use to view the event when you click on it in the calendar. We recommend creating a small detail layout even if you want folks to jump to a layout you already have (like an orders layout) when clicking on an event. Having a small mini-window come up can help users quickly look at an event and then close that window without loosing their place in the calendar. Add a button to this layout to jump them to your main layout if they need more. Here's how: [[jump to my event]].
May 22, 2012, at 12:15 AM by 50.132.84.245 -
Changed lines 39-40 from:
Self ) \\
to:
Self )
May 22, 2012, at 12:14 AM by 50.132.84.245 -
Changed lines 7-12 from:
This calendar, however, can include events from completely unrelated tables--each of which becomes a "data source" for the calendar. In this way you might have one source be an events table holding things like followup calls, meetings, etc. And have a second source for your jobs table where you show job due dates on the calendar.

You can even have multiple sources from within the same table: if
, for instance, you had a job due date in your jobs table ''and'' a followup date in your jobs table, you'd create those as two separate sources. Our Pro calendar comes with a [[To-Do List]] as a second example source.

One
you set up multiple sources, users can turn sources off and on using the Sources tab in the left hand sidebar.
to:
This calendar, however, can include events from completely unrelated tables--each of which becomes a "data source" for the calendar. In this way you might have one source be an events table holding things like followup calls, meetings, etc. And have a second source for your jobs table where you show job due dates on the calendar.

The calendar ships with an example second source, a [[To-Do List]]
, to show you how this works. You can toggle this second source off and on by visiting the "Sources" tab in the calendar's left hand sidebar.

You can even have multiple sources from within the same table: if, for instance,
you had a job due date in your jobs table ''and'' a followup date in your jobs table, you'd create those as two separate sources. 
Changed lines 33-34 from:
--> You'll also want to add the following auto enter calc to your TimeStart field (if you don't have a time start field, create one):
to:
--> You'll also want to add the following auto enter calc to your TimeStart field (if you don't have a time start field, create one). Same thing with TimeEnd--make one and use this auto-enter calc:
Changed lines 37-41 from:
Self > Time ( 24 ; 0 ; 0 ) ; Self - Time ( 24 ; 0 ; 0 ) ; \\
Self )

--> Make sure you uncheck the "Do not replace existing value" checkbox. This Auto-Enter option is needed if you want events to be able to start
at midnight.
to:
Self = Time ( 0 ; 0 ; 0 ) ; Time ( 0 ; 0 ; 1 ) ; \\
Self > Time ( 24 ; 0 ; 0 ) ; Self - Time ( 24 ; 0 ; 0 ) + 1 ; \\
Self ) \\

--> Make sure you uncheck the "Do not replace existing value" checkbox. This Auto-Enter option is needed if you want events to be able to start or end
at midnight.
Deleted lines 55-56:

April 21, 2012, at 10:37 AM by 93.95.107.10 -
April 21, 2012, at 10:37 AM by 93.95.107.10 -
Added lines 51-56:

'''Source Limitations'''

The Gantt Chart can only depict records from the first source and unlike other views it won't show records from more than one source at the same time.

April 21, 2012, at 10:36 AM by 93.95.107.10 -
Changed lines 7-10 from:
This calendar, however, can include events from completely unrelated tables--each of which becomes a "data source" for the calendar. In this way you might have one source be an events table holding things like followup calls, meetings, etc. And have a second source by your jobs table where you have job due dates.

You can even have multiple sources from within the same table: if, for instance
, you had a job due date in your jobs table and a followup date in your jobs table, you'd create those as two separate sources. Our Pro calendar comes with a [[To-Do List]] as a second example source.
to:
This calendar, however, can include events from completely unrelated tables--each of which becomes a "data source" for the calendar. In this way you might have one source be an events table holding things like followup calls, meetings, etc. And have a second source for your jobs table where you show job due dates on the calendar.

You can even have multiple sources from within the same table: if
, for instance, you had a job due date in your jobs table ''and'' a followup date in your jobs table, you'd create those as two separate sources. Our Pro calendar comes with a [[To-Do List]] as a second example source.
Changed lines 13-14 from:
''Note that having multiple sources can show up in the calendar's [[speed]] as there are more records to sort and draw.''
to:
''Note that having multiple sources can show up in the calendar's [[speed]] as there are more records to draw, but this FM12 calendar is much faster at drawing multiple sources than our previous versions have been.''
April 17, 2012, at 08:25 AM by 78.86.121.102 -
Deleted lines 49-85:
You'll find Source counts below comments "Abstract for sources" in the following scripts:

--> Insert iCal File Into Calendar { UseExistingData }
--> Click in / Drag Event
--->'' in the first Set Variable after the comment "Create a new record"''
--> Clear iCal Variables
--> Clear Source Variables
--> Clear iCal Parsing Variables

!! iCal Sources

'''Overview.'''

You create a new iCal source in much the same way as you create a FileMaker source, it is just a lot simpler since almost all the work is done on the Source No X layout.

'''Regarding our iCal Example.'''

The URL we use for our example is from John's yoga studio. This iCal only returns events for the "next two weeks" (the yoga studio has set it up that way). So if you're looking at our sample data in November of 2009 you won't see any iCal events. Navigate to "today" and then click on the "Yoga Schedule" on our Sources tab to see how this works.

'''Caveats.'''

iCal sources can really slow the calendar down, however, especially if you refresh them frequently (there is a "refresh every" X hours attribute on the Source No X layout to help alleviate this) or if your URL has a ton of records in the past. You might start by editing the iCal example we have (editing the Source No 2) layout to see if the iCal source you're interested in is fast enough.

Grabbing an iCal URL also requires a plugin. We're using the free ScriptMaster plugin for this and you can download a copy here: http://www.360works.com/scriptmaster/  Follow the installation instructions that come with the plugin.

'''Adding an iCal source.'''

-> '''1.''' Duplicate the "Source No 2" layout and rename it Source No 3 (or your next unused source number).

-> '''2.''' Enter layout mode and visit each of the configuration tabs and enter the details required for this source. Note that we don't color-code iCal events by "status" but you can color code by source if you want: more [[EventColors | here]].

-> '''4.''' All iCal events share the Event Details web layout so there isn't really anything to do here though you may want to make that layout larger depending on the kind of information you're looking at.

-> '''5.''' Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source. iCal sources can be slow (they have to be downloaded, ''then'' processed) so you might not want this happening on launch.

-> '''6.''' If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher read step 6 above and make changes to a few scripts.

Deleted lines 50-65:

'''Troubleshooting.'''

If you're having trouble getting your iCal source to show up, here are a few tips:

-> Make sure the URL ends in .ics If it doesn't, try adding the URL to iCal proper and you'll see the real URL (the one ending in .ics) pop up in iCal's confirmation message: copy this url and use it.

-> Make sure your url begins with http:// not webcal:// (just switch it).

-> Check the $$sc_iCal[X] variable in the data viewer to see if you're getting any events in from the URL ("X" in this case is the source number for your URL). If you don't see anything here, the URL isn't properly formed or there is no file at the end of it.

-> If you do see data in the $$sc_iCal[X] variable, make sure the events are in the current year: iCalShare in particular has tone of out of date calendars listed as their "most recent". Find a date in the variable where there is an event...

--> Look for the DTSTART value. A date like this, "VALUE=DATE:20100214" means February 14th, 2010

-> ... and then navigate to that event in the calendar to see if it is showing up.
April 17, 2012, at 08:19 AM by 78.86.121.102 -
Changed lines 48-49 from:
-> '''6.''' If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher you'll need to edit a few scripts where we've hard coded source numbers into the calendar. (This is faster than looping through them, but we apologize for the inconvenience.) You'll find Source counts below comments "Abstract for sources" in the following scripts:
to:
-> '''6.''' Now edit the script "Load Source Settings at Startup --- Describe Your Sources Here ---" where you'll see a block of a dozen lines for each source. Duplicate this block for your new source by copying and pasting an existing block back into the script: begin your block by testing for the source's layout name as we do, testing for "Source No 3". Then edit each of the lines in the block, taking the script comments as instructions.

You'll find Source counts below comments "Abstract for sources" in the following scripts:
April 17, 2012, at 08:15 AM by 78.86.121.102 -
Changed lines 35-37 from:
---> Case (
Self = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ;
Self > Time ( 24 ; 0 ; 0 ) ; Self - Time ( 24 ; 0 ; 0 ) ;
to:
---> Case ( \\
Self = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ; \\
Self > Time ( 24 ; 0 ; 0 ) ; Self - Time ( 24 ; 0 ; 0 ) ; \\
Deleted lines 39-40:
// v 5.09
April 17, 2012, at 08:14 AM by 78.86.121.102 -
Changed lines 9-12 from:
You can even have multiple sources from within the same table: if, for instance, you had a job due date in your jobs table and a followup date in your jobs table, you'd create those as two separate sources.

You can even have sources that aren't FileMaker tables by creating sources that represent iCal URLS. In this way you can mix events from an iCal URL among your FileMaker records
.
to:
You can even have multiple sources from within the same table: if, for instance, you had a job due date in your jobs table and a followup date in your jobs table, you'd create those as two separate sources. Our Pro calendar comes with a [[To-Do List]] as a second example source.
Changed lines 13-14 from:
''Note that having multiple sources can show up in the calendar's [[speed]]. So be judicious as to how you use this.''
to:
''Note that having multiple sources can show up in the calendar's [[speed]] as there are more records to sort and draw.''
Changed lines 23-24 from:
-> '''2.''' Enter layout mode, then layout setup and base this new layout on the table you'd like to show records from. In our example, we'll call this "Orders"
to:
-> '''2.''' Enter layout mode, then layout setup and base this new layout on the table you'd like to show records from. In this example, we'll call this "Orders"
Changed lines 29-31 from:
---> z_sc_TimestampEndCalc
---> z_sc_TimestampStartCalc
to:
---> zscEventSummaryCalc
---> zscTimestampEndCalcNum
---> zscTimestampStartCalcNum

Changed lines 35-36 from:
---> If ( Self = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ; Self )
to:
---> Case (
Self = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ;
Self > Time ( 24 ; 0 ; 0 ) ; Self - Time ( 24 ; 0 ; 0 ) ;
Self )

// v 5.09

February 15, 2010, at 06:07 AM by 76.22.123.157 -
Changed lines 85-86 from:
'''Troubleshootig.'''
to:
'''Troubleshooting.'''
February 15, 2010, at 06:06 AM by 76.22.123.157 -
Changed lines 95-99 from:
-> If you do see data in the $$sc_iCal[X] variable, make sure the events are in the current year: iCalShare in particular has tone of out of date calendars listed as their "most recent".
to:
-> If you do see data in the $$sc_iCal[X] variable, make sure the events are in the current year: iCalShare in particular has tone of out of date calendars listed as their "most recent". Find a date in the variable where there is an event...

--> Look for the DTSTART value. A date like this, "VALUE=DATE:20100214" means February 14th, 2010

-> ... and then navigate to that event in the calendar to see if it is showing up
.
February 15, 2010, at 06:04 AM by 76.22.123.157 -
Changed lines 67-68 from:
iCal sources can really slow the calendar down, however, especially if you refresh them frequently (there is a "refresh every" X hours attribute on the Source No X layout to help alleviate this. You might start by editing the iCal example we have (editing the Source No 2) layout to see if the iCal source you're interested in is fast enough.
to:
iCal sources can really slow the calendar down, however, especially if you refresh them frequently (there is a "refresh every" X hours attribute on the Source No X layout to help alleviate this) or if your URL has a ton of records in the past. You might start by editing the iCal example we have (editing the Source No 2) layout to see if the iCal source you're interested in is fast enough.
Added lines 85-95:
'''Troubleshootig.'''

If you're having trouble getting your iCal source to show up, here are a few tips:

-> Make sure the URL ends in .ics If it doesn't, try adding the URL to iCal proper and you'll see the real URL (the one ending in .ics) pop up in iCal's confirmation message: copy this url and use it.

-> Make sure your url begins with http:// not webcal:// (just switch it).

-> Check the $$sc_iCal[X] variable in the data viewer to see if you're getting any events in from the URL ("X" in this case is the source number for your URL). If you don't see anything here, the URL isn't properly formed or there is no file at the end of it.

-> If you do see data in the $$sc_iCal[X] variable, make sure the events are in the current year: iCalShare in particular has tone of out of date calendars listed as their "most recent".
February 14, 2010, at 11:20 PM by 76.22.123.157 -
Changed lines 50-51 from:
--->'' in the first Set Variable after the comment "Create a new record"
''--> Clear iCal Variables
to:
--->'' in the first Set Variable after the comment "Create a new record"''
--> Clear iCal Variables
February 14, 2010, at 11:20 PM by 76.22.123.157 -
Changed lines 49-51 from:
--> Clear iCal Variables
to:
--> Click in / Drag Event
--->'' in the first Set Variable after the comment "Create a new record"
''
--> Clear iCal Variables
February 03, 2010, at 03:52 PM by 76.22.123.157 -
Changed lines 59-60 from:
'''A couple thoughts.'''
to:
'''Regarding our iCal Example.'''

The URL we use for our example is from John's yoga studio. This iCal only returns events for the "next two weeks" (the yoga studio has set it up that way). So if you're looking at our sample data in November of 2009 you won't see any iCal events. Navigate to "today" and then click on the "Yoga Schedule" on our Sources tab to see how this works.

'''Caveats
.'''
February 03, 2010, at 03:46 PM by 76.22.123.157 -
Changed lines 55-78 from:
Coming soon.
to:
'''Overview.'''

You create a new iCal source in much the same way as you create a FileMaker source, it is just a lot simpler since almost all the work is done on the Source No X layout.

'''A couple thoughts.'''

iCal sources can really slow the calendar down, however, especially if you refresh them frequently (there is a "refresh every" X hours attribute on the Source No X layout to help alleviate this. You might start by editing the iCal example we have (editing the Source No 2) layout to see if the iCal source you're interested in is fast enough.

Grabbing an iCal URL also requires a plugin. We're using the free ScriptMaster plugin for this and you can download a copy here: http://www.360works.com/scriptmaster/  Follow the installation instructions that come with the plugin.

'''Adding an iCal source.'''

-> '''1.''' Duplicate the "Source No 2" layout and rename it Source No 3 (or your next unused source number).

-> '''2.''' Enter layout mode and visit each of the configuration tabs and enter the details required for this source. Note that we don't color-code iCal events by "status" but you can color code by source if you want: more [[EventColors | here]].

-> '''4.''' All iCal events share the Event Details web layout so there isn't really anything to do here though you may want to make that layout larger depending on the kind of information you're looking at.

-> '''5.''' Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source. iCal sources can be slow (they have to be downloaded, ''then'' processed) so you might not want this happening on launch.

-> '''6.''' If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher read step 6 above and make changes to a few scripts.

-> That's it.

February 03, 2010, at 03:35 PM by 76.22.123.157 -
Changed lines 15-16 from:
Note that having multiple sources can show up in the calendar's [[speed]]. So be judicious as to how you use this.
to:
''Note that having multiple sources can show up in the calendar's [[speed]]. So be judicious as to how you use this.''
February 03, 2010, at 03:34 PM by 76.22.123.157 -
Changed lines 23-26 from:
-> 1. Duplicate the "Source No 1" layout and rename it Source No 3 (or your next unused source number).

-> 2. Enter layout mode, then layout setup and base this new layout on the table you'd like to show records from. In our example, we'll call this "Orders"
to:
-> '''1.''' Duplicate the "Source No 1" layout and rename it Source No 3 (or your next unused source number).

-> '''2.''' Enter layout mode, then layout setup and base this new layout on the table you'd like to show records from. In our example, we'll call this "Orders"
Changed lines 29-30 from:
-> 3. While still in layout mode, visit each of the configuration tabs and enter the details or map fields specific to your source. Enter browse mode when you're done and review each tab for errors. Remember how you had to add a couple fields to your events table when you first [[integration | integrated]] the calendar? You'll have to add the same fields to this table (to "Orders" in our example) in order to complete a few of the Required fields. These fields are:
to:
-> '''3.''' While still in layout mode, visit each of the configuration tabs and enter the details or map fields specific to your source. Enter browse mode when you're done and review each tab for errors. Remember how you had to add a couple fields to your events table when you first [[integration | integrated]] the calendar? You'll have to add the same fields to this table (to "Orders" in our example) in order to complete a few of the Required fields. These fields are:
Changed lines 42-48 from:
-> 4. Create an Event Detail layout for this source: this is the small layout you'll use to view the event when you click on it in the calendar (this is the layout you named next to "display layout" on the Required Layout Info tab). We recommend creating a small detail layout even if you want folks to jump to a layout you already have (like an orders layout) when clicking on an event. Having a small mini-window come up can help users quickly look at an event and then close that window without loosing their place in the calendar. Add a button to this layout to jump them to your main layout if they need more. Here's how: [[jump to my event]].

-> 5. Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source.
!! iCal Sources

->
6. If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher you'll need to edit a few scripts where we've hard coded source numbers into the calendar. (This is faster than looping through them, but we apologize for the inconvenience.) You'll find Source counts below comments "Abstract for sources" in the following scripts:
to:
-> '''4.''' Create an Event Detail layout for this source: this is the small layout you'll use to view the event when you click on it in the calendar (this is the layout you named next to "display layout" on the Required Layout Info tab). We recommend creating a small detail layout even if you want folks to jump to a layout you already have (like an orders layout) when clicking on an event. Having a small mini-window come up can help users quickly look at an event and then close that window without loosing their place in the calendar. Add a button to this layout to jump them to your main layout if they need more. Here's how: [[jump to my event]].

-> '''5.''' Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source.

-> '''6.''' If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher you'll need to edit a few scripts where we've hard coded source numbers into the calendar. (This is faster than looping through them, but we apologize for the inconvenience.) You'll find Source counts below comments "Abstract for sources" in the following scripts:
February 03, 2010, at 03:33 PM by 76.22.123.157 -
Added lines 15-16:
Note that having multiple sources can show up in the calendar's [[speed]]. So be judicious as to how you use this.
February 03, 2010, at 03:27 PM by 76.22.123.157 -
Changed lines 27-31 from:
-> 3. While still in layout mode, visit each of the configuration tabs and enter the details or map fields specific to your source. Enter browse mode when you're done and review each tab for errors. Remember how you had to add a couple fields to your events table when you first [[integration | integrated]] the calendar? You'll have to add the same fields to this table (to "Orders" in our example) in order to complete a few of the Required fields.

-->

to:
-> 3. While still in layout mode, visit each of the configuration tabs and enter the details or map fields specific to your source. Enter browse mode when you're done and review each tab for errors. Remember how you had to add a couple fields to your events table when you first [[integration | integrated]] the calendar? You'll have to add the same fields to this table (to "Orders" in our example) in order to complete a few of the Required fields. These fields are:

---> z_sc_TimestampEndCalc
---> z_sc_TimestampStartCalc

--> You'll also want to add the following auto enter calc to your TimeStart field (if you don't have a time start field, create one):

---> If ( Self = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ; Self )

--> Make sure you uncheck the "Do not replace existing value" checkbox. This Auto-Enter option is needed if you want events to be able to start at midnight.

--> If you want to show event colors in list view as we do in the Event List or Event Detail layouts, copy our field "z_ColorCalc" from Sample Events and add it to your "Orders" table mapping our field "status" to the equivalent field in your table: this is the field we used to color code events in the calendar. Note that the calendar shares the same list of statuses and resources across all sources.

-> 4. Create an Event Detail layout for this source: this is the small layout you'll use to view the event when you click on it in the calendar (this is the layout you named next to "display layout" on the Required Layout Info tab). We recommend creating a small detail layout even if you want folks to jump to a layout you already have (like an orders layout) when clicking on an event. Having a small mini-window come up can help users quickly look at an event and then close that window without loosing their place in the calendar. Add a button to this layout to jump them to your main layout if they need more. Here's how: [[jump to my event]].

-> 5. Edit the script "Load Calendar Settings - On Startup --- Edit Configuration Here ---" and find the comment "Which sources are active by default". If you want your source to be shown in the calendar at startup, add it's number to the List () function after that comment. If you don't do anything here your source will show up as a possible source on the Sources tab, but its events won't show in the calendar unless a user elects to click on that source.
Added lines 45-53:
-> 6. If you're creating Source No 5 or lower, you're done. Enter browse mode, run your Upon Opening script and enjoy. If you're creating Source No 6 or higher you'll need to edit a few scripts where we've hard coded source numbers into the calendar. (This is faster than looping through them, but we apologize for the inconvenience.) You'll find Source counts below comments "Abstract for sources" in the following scripts:

--> Insert iCal File Into Calendar { UseExistingData }
--> Clear iCal Variables
--> Clear Source Variables
--> Clear iCal Parsing Variables

!! iCal Sources

February 03, 2010, at 03:08 PM by 76.22.123.157 -
Added lines 13-14:
One you set up multiple sources, users can turn sources off and on using the Sources tab in the left hand sidebar.
Changed lines 17-18 from:
asfv
to:
Each source in the calendar is represented by a layout. You'll see a couple of these layouts in the calendar's example file: they are names "Source No 1" and "Source No 2". Any new sources you create will need a layout named the same way.

Here is how you'd create a new FileMaker source...

-> 1. Duplicate the "Source No 1" layout and rename it Source No 3 (or your next unused source number).

-> 2. Enter layout mode, then layout setup and base this new layout on the table you'd like to show records from. In our example, we'll call this "Orders"

--> ''Note that you may want to make our Events table a child of your orders table so that you can see multiple events per order. Making "orders" a source in itself is best for showing a singular fact about each order (like a due date) in the calendar.''

-> 3. While still in layout mode, visit each of the configuration tabs and enter the details or map fields specific to your source. Enter browse mode when you're done and review each tab for errors. Remember how you had to add a couple fields to your events table when you first [[integration | integrated]] the calendar? You'll have to add the same fields to this table (to "Orders" in our example) in order to complete a few of the Required fields.

-->

February 03, 2010, at 02:52 PM by 76.22.123.157 -
Changed lines 3-4 from:
Coming soon.
to:
'''Overview.'''

Traditionally a portal can only show records from one table occurrence, though it can include fields from other table occurrences related to the one the portal is based on.

This calendar, however, can include events from completely unrelated tables--each of which becomes a "data source" for the calendar. In this way you might have one source be an events table holding things like followup calls, meetings, etc. And have a second source by your jobs table where you have job due dates.

You can even have multiple sources from within the same table: if, for instance, you had a job due date in your jobs table and a followup date in your jobs table, you'd create those as two separate sources.

You can even have sources that aren't FileMaker tables by creating sources that represent iCal URLS. In this way you can mix events from an iCal URL among your FileMaker records.

'''Creating a Second FileMaker Source.'''

asfv

January 07, 2010, at 03:54 PM by 76.22.123.157 -
Added lines 1-7:
!! How can I show records from more than one table in the same calendar?

Coming soon.

!! iCal Sources

Coming soon.
(855) SEEDCODE
[email protected]
Follow us: