SeedCodeCalendar12

Adding Fields

SeedCodeCalendar12.AddingFields History

Hide minor edits - Show changes to output

July 15, 2014, at 01:41 PM by 50.132.85.96 -
Changed lines 19-24 from:
When you integrated the calendar you already created a relationship from CalendarRows to Sample events based on this field match:

CalendarEventUIDCalc_FirstValue = _id

Where  _id is the primary key (the unique ID) in your events table. This relationship is used on the gantt chart but will also allow you to add fields right from your events table to the daily view.
to:
-> When you integrated the calendar you already created a relationship from CalendarRows to Sample events based on this field match:

-> CalendarEventUIDCalc_FirstValue = _id

-> Where  _id is the primary key (the unique ID) in your events table. This relationship is used on the gantt chart but will also allow you to add fields right from your events table to the daily view.
Changed lines 27-29 from:
In order to get access to the fields in your events table you'll need to make a new relationship. On the relationships tab of manage database, create a new instance of your events table named something like "SampleEventsDirect" (append "Direct" to the name of the table occurrence you're using for events). Link this to CalendarRows as shown below:

to:
-> In order to get access to the fields in your events table you'll need to make a new relationship. On the relationships tab of manage database, create a new instance of your events table named something like "SampleEventsDirect" (append "Direct" to the name of the table occurrence you're using for events). Link this to CalendarRows as shown below:

 %width=500px newwin% [[http://www.seedcode.com/rootimages/stikipad/pro12/SampleEventsDirect.png | http://www.seedcode.com/rootimages/stikipad/pro12/SampleEventsDirect.png]]
July 15, 2014, at 01:38 PM by 50.132.85.96 -
Added lines 17-18:
'''Calendar Versions prior to v7'''
Changed lines 25-33 from:
Next go to the Day Tab of the calendar in layout mode (see [[Calendar Tabs | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.
to:
'''Calendar Versions > 7'''

In order to get access to the fields in your events table you'll need to make a new relationship. On the relationships tab of manage database, create a new instance of your events table named something like "SampleEventsDirect" (append "Direct" to the name of the table occurrence you're using for events). Link this to CalendarRows as shown below:



'''Continue: all versions'''

Next go to the Day Tab of the calendar in layout mode (see [[Calendar Tabs | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events (versions prior to 7) in the original calendar file or from SampleEventsDirect (versions after 7)
.
February 18, 2013, at 07:27 PM by 98.245.113.231 -
Changed lines 72-73 from:
'''4.''' At this point, MyField will show up on the month view beside the event's time if there is one. If you'd like to remove the time as well, edit the script "Format Event Time --- Edit Time Formats for Events Here ---". Edit the very last SetVariable statement in the script and you'll see that right at the beginning, on the 4th line, we've commented out a line about the Day View. Uncomment this line changing the mode form "Day Sched" to "Month" and you'll have remove times from displaying on the month view.
to:
'''4.''' At this point, MyField will show up on the month view beside the event's time if there is one. If you'd like to remove the time as well, edit the script "Format Event Time --- Edit Time Formats for Events Here ---". Edit the very last SetVariable statement in the script and you'll see that right at the beginning, on the 4th line, we've commented out a line about the Day View. Uncomment this line changing the mode form "Day Sched" to "Month" and you'll have removed times from displaying on the month view.
February 18, 2013, at 07:26 PM by 98.245.113.231 -
Changed lines 15-16 from:
You can place any fields from your events table right on then Day view of the calendar, and you can even make these fields enterable if you'd like, but there are a few caveats about that below.
to:
You can place any fields from your events table right on the Day view of the calendar, and you can even make these fields enterable if you'd like, but there are a few caveats about that below.
Changed lines 25-26 from:
Next, add a Refresh Window step at the end of the script "Refresh Calendar..." using the the Fluch Cached Join Results option. If you want the best possible performance you can wrap it in an If statement so this step only executes when $$sc_Mode = "Day Sched". Reason for this is that the "Flush..." part of this will undo some of the work FileMaker does storing cached data from the server, and on some networks you'll feel this as you need to fetch the data over again.
to:
Next, add a Refresh Window step at the end of the script "Refresh Calendar..." using the the Flush Cached Join Results option. If you want the best possible performance you can wrap it in an "If" statement so this step only executes when $$sc_Mode = "Day Sched". Reason for this is that the "Flush..." part of this will undo some of the work FileMaker does storing cached data from the server, and on some networks you'll feel this as you need to fetch the data over again.
Changed lines 29-30 from:
And, obviously, this only works for one table at a time unless you'd like to set up similar relationships to each of your events' source tables-- if your primary keys are all prefixed, only one relationship will be "true" at a time, so you can stack fields form other events this way. If your primary keys aren't prefixed get in touch with SeedCode as we have some custom solutions that can help with this.
to:
And, obviously, this only works for one table at a time unless you'd like to set up similar relationships to each of your events' source tables-- if your primary keys are all prefixed, only one relationship will be "true" at a time, so you can stack fields from other events this way. If your primary keys aren't prefixed get in touch with SeedCode as we have some custom solutions that can help with this.
August 06, 2012, at 03:38 AM by 50.132.84.245 -
Added lines 9-10:
You'll find some additional controls inside the script "Format Event Summary --- Edit the Style of the Event Text Here ---"
May 19, 2012, at 07:31 PM by 50.132.84.245 -
Changed lines 54-55 from:
This adds the field "MyField" to the SQL Query results so you'll have access to it when it's time to draw the month view.
to:
This adds the field "MyField" to the SQL Query results so you'll have access to it when it's time to draw the month view. Hard coding a literal field name like this isn't usually a great idea as this calc will break if you change the name of "MyField". But this is a fine way to go to just see this working. Once it is working you'll want to go back and replace "MyField" with  a custom function that quotes the field and removes the table name, effectively making the field name SQL safe. Kevin Frank has a great such function here: http://www.filemakerhacks.com/?p=4924
May 19, 2012, at 07:28 PM by 50.132.84.245 -
Changed lines 60-63 from:
'''3.''' Next edit the script "Read Event Summary by Number ( Number )" and edit the line right after the comment "Summary". Change the calc used from this:

-> GetValue ( $sc_Calendar ; 2 )
to:
'''3.''' Next edit the script "Read Event Summary by Number ( Number )" and edit the line right after the comment "Summary". Change the '''first line''' of the calc used from this:

-> Substitute ( GetValue ( $sc_Calendar ; 3 )  ;
Changed lines 66-67 from:
-> GetValue ( $sc_Calendar ; if ( $$sc_Mode = "Month" ; 5 ; 2 ) )
to:
-> Substitute ( GetValue ( $sc_Calendar ; If ( $$sc_Mode = "Month" ; 5 ; 3 ) )  ;
 
May 19, 2012, at 07:23 PM by 50.132.84.245 -
Changed lines 52-53 from:
-> & "." & Quote ( $$sc_FieldForStatus ) & If ( $$sc_Mode = "Month" ;  ", " & $sc_Alias & "." & GetFieldName ( SampleEvents::MyField ) )
to:
-> & If ( $$sc_Mode = "Month" ;  ", " & $sc_Alias & "." & "MyField" )
May 19, 2012, at 06:52 PM by 50.132.84.245 -
Changed lines 5-6 from:
Most of the formatting of how things look in the calendar is done on the Source No X layout (Source No 1, etc.) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example). More [[http://www.seedcode.com/pmwiki/pmwiki.php?n=SeedCodeCalendar12.MultiLineEvents | here]].
to:
Most of the formatting of how things look in the calendar is done on the "Calendar Source Data" layout where you specify which field is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example).

When you integrated
the calendar you created a field in your events table called "zscEventSummaryCalc". Edit the definition of that field to include additional fields in the calendar. More [[http://www.seedcode.com/pmwiki/pmwiki.php?n=SeedCodeCalendar12.MultiLineEvents | here]].
Changed lines 15-16 from:
To add a field to the day view, create a relationship from CalendarRows to SampleEvents like this:
to:
When you integrated the calendar you already created a relationship from CalendarRows to Sample events based on this field match:
Changed lines 19-20 from:
Where  _id is the primary key (the unique ID) in your events table. All this relationship is for is to allow you to add fields right from your events table to the daily view.
to:
Where  _id is the primary key (the unique ID) in your events table. This relationship is used on the gantt chart but will also allow you to add fields right from your events table to the daily view.
Changed lines 23-24 from:
Next, change the Refresh Window step at the end of the "Refresh Calendar..." script to use the Fluch Cached Join Results option. If you're on a Mac you can leave it like this but if you're on windows or want the best possible performance you can wrap it in an If statement so it uses the Flush option only when $$sc_Mode = "Day Sched" and uses a regular refresh elsewhere.
to:
Next, add a Refresh Window step at the end of the script "Refresh Calendar..." using the the Fluch Cached Join Results option. If you want the best possible performance you can wrap it in an If statement so this step only executes when $$sc_Mode = "Day Sched". Reason for this is that the "Flush..." part of this will undo some of the work FileMaker does storing cached data from the server, and on some networks you'll feel this as you need to fetch the data over again.
Changed lines 27-28 from:
And, obviously, this only works for one table at a time unless you'd like to set up similar relationships to each of your FileMaker events tables-- if your primary keys are all prefixed, only one relationship will be "true" at a time, so you can stack fields form other events this way. If your primary keys aren't prefixed get in touch with SeedCode as we have some custom solutions that can help with this.
to:
And, obviously, this only works for one table at a time unless you'd like to set up similar relationships to each of your events' source tables-- if your primary keys are all prefixed, only one relationship will be "true" at a time, so you can stack fields form other events this way. If your primary keys aren't prefixed get in touch with SeedCode as we have some custom solutions that can help with this.
Changed lines 31-32 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar". Don't send any parameters to the script.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do redraw the calendar just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar". Don't send any parameters to the script.
Changed lines 44-67 from:
'''1.''' Edit the script "Write One FileMaker Event in iCal Format" and find the line where we're setting the variable $scical_Summary.

'''2.''' Change that calc from this...

GetField ( $$sc_FieldForSummary
)

...to the code below where "SampleEvents" is the name of the table occurrence for Source No 1 in your file, and "SampleEvents::MYField" is the name of the field you wish to show on the month view. Note that the case statement here lets you specify different settings for other views as well, and leaves the mapped field, represented by GetField (
$$sc_FieldForSummary ) as the default for other views and other sources.

  Case (
    Get ( LayoutTableName ) = "SampleEvents" ; // the table occurrence for Source No 1
        Case (
          $$sc_Mode = "Month" ;  SampleEvents::MYField ;
     
    $$sc_Mode = "Week Sched" ; GetField ( $$sc_FieldForSummary ) ;
          GetField ( $$sc_FieldForSummary ) // Default for other modes
        )
    ; GetField (
$$sc_FieldForSummary ) // Default for other sources/tables
  )

For your reference, here is a list of all the possible modes in the calendar and
the views they represent: [[Modes In The Calendar]].

Note that if you will only ever have one source you can dispense with the Get ( LayoutTableName
) test-- this does add a slight bit of weight to the calendar. If you dispense with this you'd remove the first two lines, and the last two lines from the calc above.

'''3.''' At this point, MyField will show up on the month view beside the event's time if there is one. If you'd like to remove the time as well, edit the script "Format Event Time --- Edit Time Formats for Events Here ---". Edit the very last SetVariable statement in the script and you'll see that right at the beginning, on the 4th line, we've commented out a line about the Day View. Uncomment this line changing the mode form "Day Sched" to "Month" and you'll have remove times from displaying on the month view.
to:
'''1.''' Edit the script "Cast Events as Variables - Build Query" and find comment "Build Query 2". You'll be editing the first Set Variable line after this comment.

'''2.''' The calc for that Set Variable line contains a Let() statement in it and that Let sets a variable "f" (for "fields") to the list of fields we'll pull from your events table. That currently ends like this:

-> & "." & Quote ( $$sc_FieldForStatus )

Add the following right after the code above:

-> & "." & Quote ( $$sc_FieldForStatus ) & If ( $$sc_Mode = "Month" ;  ", " &
$sc_Alias & "." & GetFieldName ( SampleEvents::MyField ) )

This adds the field "MyField" to the SQL Query results so you'll have access to it when it's time to draw the month view.

You can expand on this calc to include new fields for other modes as well. For your reference, here is a list of all the possible modes in the calendar and the views they represent: [[Modes In The Calendar]].

Note that if you have more than one source you'll want to expand this to include a different version of "MyField" or each source by using a case statement and a different field for each value of
$sc_SourceNo.

'''3.''' Next edit the script "Read Event Summary by Number ( Number )" and edit the line right after the comment "Summary". Change
the calc used from this:

-> GetValue ( $sc_
Calendar ; 2 )

To this:

-> GetValue ( $sc_Calendar ; if ( $$sc_Mode = "Month" ; 5 ; 2
) )

The numbers 5 and 2 here are the columns from our SQL results; since we put "MyField" after "Status", it's now the 5th column
.

'''4.''' At this point, MyField will show up on the month view beside the event's time if there is one. If you'd like to remove the time as well, edit the script "Format Event Time --- Edit Time Formats for Events Here ---". Edit the very last SetVariable statement in the script and you'll see that right at the beginning, on the 4th line, we've commented out a line about the Day View. Uncomment this line changing the mode form "Day Sched" to "Month" and you'll have remove times from displaying on the month view.
April 18, 2012, at 12:55 PM by 166.137.10.13 -
Changed lines 29-30 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar". Don't send any parameters to the script.
August 07, 2010, at 12:31 AM by 76.22.123.157 -
Changed lines 5-6 from:
Most of the formatting of how things look in the calendar is done on the Source No X layout (Source No 1, etc.) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example).
to:
Most of the formatting of how things look in the calendar is done on the Source No X layout (Source No 1, etc.) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example). More [[http://www.seedcode.com/pmwiki/pmwiki.php?n=SeedCodeCalendar12.MultiLineEvents | here]].
April 11, 2010, at 01:50 AM by 76.22.123.157 -
Added lines 21-22:
Next, change the Refresh Window step at the end of the "Refresh Calendar..." script to use the Fluch Cached Join Results option. If you're on a Mac you can leave it like this but if you're on windows or want the best possible performance you can wrap it in an If statement so it uses the Flush option only when $$sc_Mode = "Day Sched" and uses a regular refresh elsewhere.
March 04, 2010, at 04:52 PM by 76.22.123.157 -
Added lines 60-61:
Note that if you will only ever have one source you can dispense with the Get ( LayoutTableName ) test-- this does add a slight bit of weight to the calendar. If you dispense with this you'd remove the first two lines, and the last two lines from the calc above.
March 04, 2010, at 04:50 PM by 76.22.123.157 -
Changed line 29 from:
! Changing the fields that display per tab
to:
! Changing fields per tab
March 04, 2010, at 04:49 PM by 76.22.123.157 -
Changed lines 32-35 from:
'''Overview.''' Yes. The section above describes how you can add your own fields to the Day view, but you can also change what shows up on other views. In this example we'll describe how to set the Month view to show just a field in your events table called "My Field", leaving the other views to show the field(s) you've mapped to the calendar's Summary.

'''The Modification.''' Begin by backing up a copy of your file. ;-)
to:
'''Overview'''

Yes. The section above describes how you can add your own fields to the Day view, but you can also change what shows up on other views. In this example we'll describe how to set the Month view to show just a field in your events table called "My Field", leaving the other views to show the field(s) you've mapped to the calendar's Summary.

'''The Modification'''

Begin by backing up a copy of your file. ;-)
March 04, 2010, at 04:49 PM by 76.22.123.157 -
Changed lines 42-43 from:
to the code below where "SampleEvents" is the name of the table occurrence for Source No 1 in your file, and "SampleEvents::MYField" is the name of the field you wish to show on the month view. Note that the case statement here lets you specify different settings for other views as well, and leaves the mapped field, represented by GetField ( $$sc_FieldForSummary ) as the default for other views and other sources.
to:
...to the code below where "SampleEvents" is the name of the table occurrence for Source No 1 in your file, and "SampleEvents::MYField" is the name of the field you wish to show on the month view. Note that the case statement here lets you specify different settings for other views as well, and leaves the mapped field, represented by GetField ( $$sc_FieldForSummary ) as the default for other views and other sources.
March 04, 2010, at 04:15 PM by 76.22.123.157 -
Changed lines 29-30 from:
! Can I show different fields on some views of the calendar?
to:
! Changing the fields that display per tab
!
! Can I show different fields on some views of the calendar?
March 04, 2010, at 04:14 PM by 76.22.123.157 -
Changed lines 29-30 from:
!! Can I show different fields on some views of the calendar?
to:
! Can I show different fields on some views of the calendar?
March 04, 2010, at 04:02 PM by 76.22.123.157 -
Changed lines 35-38 from:
1. Edit the script "Write One FileMaker Event in iCal Format" and find the line where we're setting the variable $scical_Summary.

2. Change that calc from this...
to:
'''1.''' Edit the script "Write One FileMaker Event in iCal Format" and find the line where we're setting the variable $scical_Summary.

'''2.''' Change that calc from this...
Changed lines 41-43 from:
to this...

Case
(
to:
to the code below where "SampleEvents" is the name of the table occurrence for Source No 1 in your file, and "SampleEvents::MYField" is the name of the field you wish to show on the month view. Note that the case statement here lets you specify different settings for other views as well, and leaves the mapped field, represented by GetField ( $$sc_FieldForSummary ) as the default for other views and other sources.

 
Case (
Changed line 46 from:
           $$sc_Mode = "Month" ;  SampleEvents::Status ;
to:
           $$sc_Mode = "Month" ;  SampleEvents::MYField ;
Changed lines 51-57 from:
)
to:
  )

For your reference, here is a list of all the possible modes in the calendar and the views they represent: [[Modes In The Calendar]].

'''3.''' At this point, MyField will show up on the month view beside the event's time if there is one. If you'd like to remove the time as well, edit the script "Format Event Time --- Edit Time Formats for Events Here ---". Edit the very last SetVariable statement in the script and you'll see that right at the beginning, on the 4th line, we've commented out a line about the Day View. Uncomment this line changing the mode form "Day Sched" to "Month" and you'll have remove times from displaying on the month view.

Enjoy!
March 04, 2010, at 03:55 PM by 76.22.123.157 -
Changed lines 27-51 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.

!! Can I show different fields on some views of the calendar?

'''Overview.''' Yes. The section above describes how you can add your own fields to the Day view, but you can also change what shows up on other views. In this example we'll describe how to set the Month view to show just a field in your events table called "My Field", leaving the other views to show the field(s) you've mapped to the calendar's Summary.

'''The Modification.''' Begin by backing up a copy of your file. ;-)

1. Edit the script "Write One FileMaker Event in iCal Format" and find the line where we're setting the variable $scical_Summary.

2. Change that calc from this...

GetField ( $$sc_FieldForSummary )

to this...

Case (
    Get ( LayoutTableName ) = "SampleEvents" ; // the table occurrence for Source No 1
        Case (
          $$sc_Mode = "Month" ;  SampleEvents::Status ;
          $$sc_Mode = "Week Sched" ; GetField ( $$sc_FieldForSummary ) ;
          GetField ( $$sc_FieldForSummary ) // Default for other modes
        )
    ; GetField ( $$sc_FieldForSummary ) // Default for other sources/tables
)
January 20, 2010, at 01:39 AM by 76.22.123.157 -
Changed lines 13-16 from:
To add a field to the day view, first go to the Day Tab of the calendar in layout mode (see [[Calendar Tabs | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.

Note that we have a relationship from Calendar Rows to Sample Events: all this relationship is for is
to allow you to add fields right from your events table to the daily view. This relationship is true only if there are no are overlapping events: if there are, we don't show any individual fields.
to:
To add a field to the day view, create a relationship from CalendarRows to SampleEvents like this:

CalendarEventUIDCalc_FirstValue = _id

Where
  _id is the primary key (the unique ID) in your events table. All this relationship is for is to allow you to add fields right from your events table to the daily view.

Next go to the Day Tab of
the calendar in layout mode (see [[Calendar Tabs | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.
January 09, 2010, at 05:54 PM by 76.22.123.157 -
Changed lines 23-25 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.

You'll see that the status field in our calendar example is set up this way
.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
December 20, 2009, at 04:51 AM by 76.22.123.157 -
Changed lines 23-24 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend OnObjectSave) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend the OnObjectSave trigger) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
December 20, 2009, at 04:49 AM by 76.22.123.157 -
Changed lines 5-8 from:
Most of the formatting of how things look in the calendar is done on the Source No X layout(s) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example).

But on the Daily View you have a bit more room and may want to show something besides just the Summary.
to:
Most of the formatting of how things look in the calendar is done on the Source No X layout (Source No 1, etc.) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example).

But on the Day View you have a bit more room and may want to show something besides just the Summary.
November 19, 2009, at 03:07 AM by 76.22.123.157 -
Changed lines 15-16 from:
Note that we have a relationship from Calendar Rows to Sample Events: all this relationship is for is to allow you to add fields right from your events table to the daily view. This relationship is true for the first event (if there are are overlapping events) and for the first row of the event's time (if the event spans multiple rows). 
to:
Note that we have a relationship from Calendar Rows to Sample Events: all this relationship is for is to allow you to add fields right from your events table to the daily view. This relationship is true only if there are no are overlapping events: if there are, we don't show any individual fields.
Changed lines 23-25 from:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend OnObjectSave) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
to:
Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend OnObjectSave) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.

You'll see that the status field in our calendar example is set up this way
.
November 16, 2009, at 04:15 AM by 76.22.123.157 -
Changed lines 13-14 from:
To add a field to the day view, first go to the Day Tab of the calendar in layout mode (see [[EditLayouts | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.
to:
To add a field to the day view, first go to the Day Tab of the calendar in layout mode (see [[Calendar Tabs | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.
November 16, 2009, at 04:06 AM by 76.22.123.157 -
Changed lines 3-5 from:
Day View

Other Views
to:
'''Overview'''

Most of the formatting of how things look in the calendar is done on the Source No X layout(s) where you specify which field (perhaps a calc) is used for the Summary-- that is the event attribute we show on all the calendar screens. Using a calc for your Summary field lets you show  whatever you like on the calendar (perhaps a user's initials and then the event description, for example).

But on the Daily View you have a bit more room and may want to show something besides just the Summary.

'''Day View'''

You can place any fields from your events table right on then Day view of the calendar, and you can even make these fields enterable if you'd like, but there are a few caveats about that below.

To add a field to the day view, first go to the Day Tab of the calendar in layout mode (see [[EditLayouts | Editing the Calendar Layouts]] if you don't know how to get to the day tab in layout mode). Then simply add fields from your event table-- that would be a field from Sample Events in the original calendar file.

Note that we have a relationship from Calendar Rows to Sample Events: all this relationship is for is to allow you to add fields right from your events table to the daily view. This relationship is true for the first event (if there are are overlapping events) and for the first row of the event's time (if the event spans multiple rows).

'''Multiple Data Sources'''

And, obviously, this only works for one table at a time unless you'd like to set up similar relationships to each of your FileMaker events tables-- if your primary keys are all prefixed, only one relationship will be "true" at a time, so you can stack fields form other events this way. If your primary keys aren't prefixed get in touch with SeedCode as we have some custom solutions that can help with this.

'''Enterable Fields'''

Note that if you allow entry to fields in your events table you may edit information that should cause an event to move or change color. Yet FileMaker won't know to do this just because you edit the field. In such cases you'll need a script trigger on your field (we recommend OnObjectSave) that will call the script "Refresh Calendar { UseExistingData ; DontRefresh }". Don't send any parameters to the script.
October 21, 2009, at 02:41 PM by 76.22.123.157 -
Added lines 1-5:
!! How can I add my own fields to the calendar?

Day View

Other Views
(855) SEEDCODE
[email protected]
Follow us: