Updating To DayBack 9.72

Notes on our latest calendar for FileMaker 13,: DayBack
SeedCode Staff
SeedCode Staff
Posts: 98
Joined: Mon Aug 13, 2012 7:43 am
PostPosted: Fri Apr 29, 2016 9:58 am
For Users Updating From 9.71
Please note that if you are updating from 9.71 you have already made many of these changes. So not all of the instructions below are necessary. See the first comment below for the few things you'll need to change.

For all other users updating from versions prior to 9.71 please follow the directions in full below.

For Everyone Else: Overview

Please back up your file before making any changes.

To update to version 9.72, 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 and bug fixes that are specifically related to scripts. We apologize for all these changes, but they're worth it.

The Changes

Add a new script:
We added one new script to DayBack. Find the script called "Check for FMP URL" in the new DayBack file you downloaded. Copy that script and paste it into your existing file to add it.

Update the following scripts in your current DayBack File (Your file if you have done an embedded integration), but don't delete the scripts themselves. Rather, use the "Select All" command to select and delete the entire contents of each script, then copy/paste the updated contents of each script from the new version of DayBack into the corresponding scripts in your DayBack file. You may get an error when opening both files at the same time. This is expected and you can just say "OK" to those errors before continuing. Here are the scripts that need to be updated this way:

"Webviewer Source Options (SourceNumber)"
"List Search From WebViewer"
"Event Find - Apply Filters ( SourceNo )"
"Calendar Help From WebViewer"

We added a check to make sure the FMP URL protocol is working on startup. Please edit the "Upon Opening" script and add the following script steps as shown in the image below.

upon-opening.png
upon-opening.png (70.9 KiB) Viewed 8652 times


We made one small addition to the "Load Calendar Settings - On Startup" script. If you haven't modified this script you are welcome to just copy the contents of the script and paste into your file as you have been doing with the other scripts. If you made changes please add the following lines that are highlighted in the screenshot below. These script steps can be copy and pasted from the new updated file.

settings.png
settings.png (121.92 KiB) Viewed 8608 times


We also made a change to the "Webviewer Settings" script. Again, if you have not made any edits to this script feel free to copy and paste replacing the contents of the script. If you have made changes or want to play it safe you will just need to copy and paste replacing the contents of one calculation for a set variable. Edit the set variable script step "$sc_OptionsResult" as shown in the screenshot below and replace the contents with the new DayBack file.

webviewer-settings.png
webviewer-settings.png (74.99 KiB) Viewed 8655 times


We made a couple of changes to the "Event Find" script. The changes fixed an issue that could cause problems if the event payload was too large over PSOS.

Edit the if statement in the script so it looks like the highlighted line in the image below. To make it easy you can just copy and paste the contents of the if statement from the same script in the new file.

event-find-1.png
event-find-1.png (77.5 KiB) Viewed 8655 times


Then add a new if statement near the bottom of the script as shown in the image below. Again it is easiest to just copy the script steps from the new file and paste them in the same place in your file.

event-find-2.png
event-find-2.png (64.84 KiB) Viewed 8655 times


We added a couple of options to the "Load Source Settings at Startup --- Describe Your Sources Here ---" script. To enable these options find the section for each source starting with source number 1.

source-settings-1.png
source-settings-1.png (42.96 KiB) Viewed 8655 times


Then add the following lines to your file (copy them from the new file) as shown in the image below.

source-settings-2.png
source-settings-2.png (153.84 KiB) Viewed 8655 times


Feel free to customize the values of the variables your are adding. The source color will override any default event colors already set so if you don't want default event colors to change you can either update the $$sc_SourceColor variable to a new value or just remove the value so the variable will not get set.

Repeat the same steps for each source you have defined. By default DayBack ships with two sources.

source-settings-3.png
source-settings-3.png (12.09 KiB) Viewed 8655 times


iPhone Layouts
This update includes a big update for iPhone optimized views. To get the best from this if you plan to use DayBack on the phone we suggest resizing the "Calendar" layout to properly fit an iPhone screen. Feel free to copy the layout contents from the new file and paste them in your file then resize the layout to the same size as the new file you downloaded. This is entirely optional and is only necessary for use on the phone.

Finishing Up:
Close the new DayBack file you used to copy the script contents from.
Change the build number recorded in the database. Navigate to "File -> Manage -> Database" then go to the "CalendarInterface" table. Change the "BuildNumberCalc" calculation to read "9.72". Click "OK" to save those changes.

If you renamed your events TO at the beginning of this process you can safely rename it back to what it was originally now.

If you haven't already, close the fresh copy of 9.72 you downloaded, then 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.72 is available. Click "Install Update".

Please run the "Upon Opening" script in your file once the update process is complete. This will ensure all of the new settings load properly and the calendar loads with the correct data.

That's it, enjoy DayBack 9.72.
Last edited by tanner on Fri May 06, 2016 10:44 am, edited 2 times in total.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue May 03, 2016 6:17 pm
If you already installed update 9.71 then you just have a few changes to make.

These changes can be made by downloading the 9.72 DayBack file and copying the contents from that file.

You will only need to replace the script contents of the following scripts:
"List Search From WebViewer"
"Event Find - Apply Filters ( SourceNo )"
"Calendar Help From WebViewer"

Then you will need to change a variable name in the "Load Calendar Settings - On Startup" script. Change the variable $$sc_NoStatusLabel to $$sc_NoFilterLabel. If you don't have a variable $$sc_NoStatusLabel you may have missed that step before in which case follow the directions below to make sure you didn't miss anything..

Then replace the variable contents of the set variable step "$sc_OptionsResult" in the script "Webviewer Settings" with the contents from the 9.72 file.

That's it!
John Sindelar
SeedCode

Return to DayBack Calendar for FileMaker

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
[email protected]
Follow us: