Updating to DayBack 9.81
Posted: Sun Jul 17, 2016 3:30 pm
Please back up your file before making any changes.
If you haven't already, navigate to the "Settings" tab in the calendar sidebar and click "Account Settings". Click "Check For Updates". This button should change to "Install Update" and inform you that version 9.81 is available. Click "Install Update".
To update the necessary script, begin by downloading the latest version of DayBack here:
You should follow these instructions if you have done the embedded integration or the linking integration and you don't want to perform the integration all over again.
Normally our updates don't change so many FileMaker Scripts (most don't change any scripts) but this version adds some new features, a couple new fields, and includes bug fixes that are specifically related to scripts. We apologize for all these changes, but they're worth it.
The Changes
1. Add two new fields to all your events tables (or “SampleEvents” and “ToDoList” if you're using the stock DayBack tables): “Location” and “DBk_Tags” are both text fields. Note that DBk_Tags must be named that way, but if you have an existing field you'd like to use for "location" just make a note of its name and use it whenever we reference "location" below. (Note that your location field must be a text field and it must be editable--it can't be a calc field, though auto-enter calcs are OK.)
2. Place both these fields on your Source No X layouts.
2.1 To do this, open the new version of DayBack you downloaded above and navigate to the "Source No 1" layout. Click on the "Resource & More" tab in layout mode and copy everything related to the location and tag fields.
2.2 Then head over to the first Source No X layout in your file and paste these objects on the Resources tab. Now double click on the location field and select the location field in your table (the same table your Source No X layout is based on). Do the same for the DBk_Tags field. Once both layout fields are pointing at your newly created location and tags fields, continue this for each Source No X layout you have, pointing each at the location and tags fields local to that table.
Note: If you don't want to use "location" for a particular source just point it's location layout field at the DBk_Unused field you should already have in your table. Then you can hide the location field for that source by editing the script "Load Source Settings at Startup --- Describe Your Sources Here ---". Find the comment "Hide popover items?" and add "Location" to the list of hidden items in the next SetVariable line.
3. Edit the calculation definition for the "DBk_WebViewerSource" field in each of your tables.
3.1 Add the two lines shown in blue in the screenshot below. Replace " = Location" with " = YourFieldName" if you're using an existing field of yours instead of location.
3.2 Next, replace all contents below the “Do not edit below this line” with the "Do not edit..." area from the new DayBack file you downloaded above. Be sure to do both parts of step 3 for each table you're showing in the calendar (each of your Source No X tables).
4. Update the following scripts in your current DayBack File (Your file if you have done an embedded integration), but don't delete the script itself. Rather, use the "Select All" command to select and delete the entire contents of each script, then copy/paste the updated contents of the script from the new version of DayBack you downloaded above:
• Replace contents of the script "Submit Event From WebViewer” from the new file.
• Replace contents of the script "Load Source's FileMaker Fields ( Number )” from the new file.
5. Finally, edit the script "Create Edit Delete Event ( SourceNo, Operation ) { Hide, DateStart , DateEnd , TimeStart ... }" adding the lines shown in blue below, copying these from the new version of DayBack you downloaded to begin these mods.
That's it! Run the "Upon Opening" script to see your changes take effect and congratulations on updating to DayBack 9.81!
If you haven't already, navigate to the "Settings" tab in the calendar sidebar and click "Account Settings". Click "Check For Updates". This button should change to "Install Update" and inform you that version 9.81 is available. Click "Install Update".
To update the necessary script, begin by downloading the latest version of DayBack here:
You should follow these instructions if you have done the embedded integration or the linking integration and you don't want to perform the integration all over again.
Normally our updates don't change so many FileMaker Scripts (most don't change any scripts) but this version adds some new features, a couple new fields, and includes bug fixes that are specifically related to scripts. We apologize for all these changes, but they're worth it.
The Changes
1. Add two new fields to all your events tables (or “SampleEvents” and “ToDoList” if you're using the stock DayBack tables): “Location” and “DBk_Tags” are both text fields. Note that DBk_Tags must be named that way, but if you have an existing field you'd like to use for "location" just make a note of its name and use it whenever we reference "location" below. (Note that your location field must be a text field and it must be editable--it can't be a calc field, though auto-enter calcs are OK.)
2. Place both these fields on your Source No X layouts.
2.1 To do this, open the new version of DayBack you downloaded above and navigate to the "Source No 1" layout. Click on the "Resource & More" tab in layout mode and copy everything related to the location and tag fields.
2.2 Then head over to the first Source No X layout in your file and paste these objects on the Resources tab. Now double click on the location field and select the location field in your table (the same table your Source No X layout is based on). Do the same for the DBk_Tags field. Once both layout fields are pointing at your newly created location and tags fields, continue this for each Source No X layout you have, pointing each at the location and tags fields local to that table.
Note: If you don't want to use "location" for a particular source just point it's location layout field at the DBk_Unused field you should already have in your table. Then you can hide the location field for that source by editing the script "Load Source Settings at Startup --- Describe Your Sources Here ---". Find the comment "Hide popover items?" and add "Location" to the list of hidden items in the next SetVariable line.
3. Edit the calculation definition for the "DBk_WebViewerSource" field in each of your tables.
3.1 Add the two lines shown in blue in the screenshot below. Replace " = Location" with " = YourFieldName" if you're using an existing field of yours instead of location.
3.2 Next, replace all contents below the “Do not edit below this line” with the "Do not edit..." area from the new DayBack file you downloaded above. Be sure to do both parts of step 3 for each table you're showing in the calendar (each of your Source No X tables).
4. Update the following scripts in your current DayBack File (Your file if you have done an embedded integration), but don't delete the script itself. Rather, use the "Select All" command to select and delete the entire contents of each script, then copy/paste the updated contents of the script from the new version of DayBack you downloaded above:
• Replace contents of the script "Submit Event From WebViewer” from the new file.
• Replace contents of the script "Load Source's FileMaker Fields ( Number )” from the new file.
5. Finally, edit the script "Create Edit Delete Event ( SourceNo, Operation ) { Hide, DateStart , DateEnd , TimeStart ... }" adding the lines shown in blue below, copying these from the new version of DayBack you downloaded to begin these mods.
That's it! Run the "Upon Opening" script to see your changes take effect and congratulations on updating to DayBack 9.81!