Updating to DayBack 10.50

Notes on our latest calendar for FileMaker 13,: DayBack
SeedCode Staff
SeedCode Staff
Posts: 96
Joined: Mon Aug 13, 2012 7:43 am
PostPosted: Mon Jun 10, 2019 1:06 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 10.50 is available. Click "Install Update".

To update the necessary scripts, 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.

The Changes

Adding support for FileMaker 18

The "Get Webviewer Calendar FilePath" script contains two Set Variable script steps that need to be updated. Both steps set the $$sc_Webviewer_URL variable and are highlighted in the screenshot below.

1. Get Webviewer Calendar FilePath script steps.png
1. Get Webviewer Calendar FilePath script steps.png (219.56 KiB) Viewed 699 times


In script step #30, double click the Set Variable step to open the "Set Variable" Options window.
Click "Specify..." next to the Value field to open its "Specify Calculation" window.
Find the line in the calculation that begins "sc_filepath", highlighted in the screenshot below.

2. Remove the existing sc_filepath line.png
2. Remove the existing sc_filepath line.png (157.59 KiB) Viewed 699 times


Delete the line, leaving a blank return/line. In it's place, copy/paste or type in the following three lines.

sc_appVersion = Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ;
sc_fmpProtocol = Case ( sc_appVersion ≥ 18 ; "fmp" & sc_appVersion & "://" ; "fmp://" ) ;
sc_filepath = sc_fmpProtocol & sc_locationPath & "/" & $sc_fileName ;

3. Three new lines in the Set Variable calc.png
3. Three new lines in the Set Variable calc.png (177.92 KiB) Viewed 699 times


Check to make sure that your calculation appears as in the screenshot above (the new lines are highlighted).
Repeat steps 1-5 for line #33.
Save the script.


The "Web Address" calculation in the calendar web viewer object also needs to be updated.

In your DayBack file, navigate to your "Calendar" layout (you may have renamed it).
Enter Layout Mode.
Double click the Web Viewer object to open the "Web Viewer Setup" dialog as in the screenshot below

4. Open the Web Viewer Setup window.png
4. Open the Web Viewer Setup window.png (168.71 KiB) Viewed 699 times

.
Click "Specify..." next to the Web Address field to open its Specify Calculation window.
Find the line in the calculation that begins "sc_filepath", highlighted in the screenshot below. Delete the line, leaving a blank return/line.

5. Remove the existing sc_filepath line.png
5. Remove the existing sc_filepath line.png (176.36 KiB) Viewed 699 times


In it's place, copy/paste or type in the following three lines. NOTE: these lines are *not* identical to the lines added in the script above.

sc_appVersion = Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ;
sc_fmpProtocol = Case ( sc_appVersion ≥ 18 ; "fmp" & sc_appVersion & "://" ; "fmp://" ) ;
sc_filepath = sc_fmpProtocol & sc_locationPath & "/" & Get ( FileName ) ;

6. Three new lines in the web viewer calc .png
6. Three new lines in the web viewer calc .png (183.41 KiB) Viewed 699 times


Check to make sure that your calculation appears as in the screenshot above (the new lines are highlighted).
Click OK (and click OK again) to save the changes to the Web Viewer calculation.
Exit Layout Mode to save the layout.

Adding support for using multiple copies of DayBack (FileMaker 17+ Only)

Please note that the following must be done in FileMaker 17 or greater as folder support doesn't exist in earlier versions: Add the following script to your current DayBack File (Your file if you have done an embedded integration) by copying it from the newly downloaded DayBack file and pasting it into your file as a new script.

"Set Temp Path Folder"

Then modify the "Get Webviewer Calendar FilePath" script so it appears as the screenshot below. The easiest way to accomplish this is to copy that section of the script from the newly downloaded file and paste it into the script in your DayBack file. Make sure to remove the duplicate "Set Variable" line that would appear after the else statement if you copy and paste. Make sure to save the script after any changes

Multiple Files.png
Multiple Files.png (165.3 KiB) Viewed 695 times


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 "10.50". Click "OK" to save those changes.

Then please run the "Upon Opening" script in your file. This will ensure all of the new settings load properly and the calendar loads with the correct data.

That's it, enjoy DayBack 10.50.

Return to DayBack Calendar for FileMaker

Who is online

Users browsing this forum: No registered users and 3 guests

(855) SEEDCODE
support@seedcode.com
Follow us: