Updating To DayBack 10.55

Notes on our latest calendar for FileMaker 13,: DayBack
SeedCode Staff
SeedCode Staff
Posts: 96
Joined: Mon Aug 13, 2012 7:43 am
PostPosted: Tue Sep 03, 2019 10:48 am
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.55 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

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 into the corresponding script 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 needs to be updated this way:

"Set Webviewer ({Message})"
"Show Event Details On Calendar (SourceNo ; FocusDate)"

Next you will need to make a few changes to the "Load Calendar Settings - On Startup --- Edit Configuration Here ---" script.
Please copy the script step shown in the screenshot below from the newly downloaded file and paste them in the same script in your file.

Fiscal Year Starts.png
Fiscal Year Starts.png (143.01 KiB) Viewed 1308 times


Next you will need to update the script "Webviewer Settings". In the new downloaded file open the script and find the script step as shown below.

WebViewer Settings.png
WebViewer Settings.png (69.9 KiB) Viewed 1308 times


Open the set variable $sc_OptionsResult script step as shown in the image and copy the contents of everything in the calculation for the set variable script step. Then in your file replace the contents of that same script step in your file as shown below.

Options Result.png
Options Result.png (309.69 KiB) Viewed 1307 times


Improving 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.

Get-Webviewer-Calendar-FilePath.png
Get-Webviewer-Calendar-FilePath.png (172.75 KiB) Viewed 1302 times


In script step #36, 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_appVersion" and replace that line with the content below:

sc_appVersion = Left ( Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ; 2 ) ;

Then repeat the same process for script step #39 and save the script changes when done.

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

Open-The-Webviewer-Setup-Window.png
Open-The-Webviewer-Setup-Window.png (168.71 KiB) Viewed 1302 times


Click "Specify..." next to the Web Address field to open its Specify Calculation window.
Find the line in the calculation that begins "sc_appVersion" and replace that line with the content below:

sc_appVersion = Left ( Floor ( GetAsNumber ( Get ( ApplicationVersion ) ) ) ; 2 ) ;

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.55". 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.55.
Last edited by tanner on Wed Sep 04, 2019 8:21 am, edited 2 times in total.
Posts: 5
Joined: Wed Mar 05, 2014 8:07 am
PostPosted: Wed Sep 04, 2019 6:15 am
FYI...

The highlighted lines (41 & 42) in the first screenshot are NOT in the script from the linked copy of DayBack for copying/pasting that you indicated earlier in the post and further down you're missing a screenshot entirely.
SeedCode Staff
SeedCode Staff
Posts: 297
Joined: Tue Nov 08, 2016 1:54 pm
PostPosted: Wed Sep 04, 2019 7:20 am
Hi rbparker,

The documents here took a bit of work, so Tanner had posted sort of a draft with *Coming Soon* in the subject line to indicate that the new build hadn't been released yet. We don't often do this, and it sounds like you're getting notifications whenever a new post is made, so you saw the article before customers that go through the docs would.

The article has been updated and the link points to the stock copy of 10.55, with all the updated scripts, so you're ready to apply the changes to your copy of DayBack!

Sincerely,

KC
Posts: 5
Joined: Wed Mar 05, 2014 8:07 am
PostPosted: Thu Sep 05, 2019 8:51 am
Per the first screenshot in the original post, I am not finding a comment line in the linked, current copy of DayBack that starts with "Fiscal Year Starts" as shown on lines 40-41 or anywhere else in the referenced script.

There's also a comment above the highlighted section mentioning weekends and I can't find that one in the linked copy of DayBack either!

Help!
SeedCode Staff
SeedCode Staff
Posts: 297
Joined: Tue Nov 08, 2016 1:54 pm
PostPosted: Thu Sep 05, 2019 9:35 am
Hi rbparker,

The link to download DayBack that is in our posts always downloads the latest copy of DayBack. Since the post was being drafted when you first found it and clicked on the link, the version of DayBack that was downloaded was build 10.54. This means that it won't have these new script additions for 10.55 in it.

I've just verified that the latest build of DayBack contains the lines as shown in the screen-shots, so you'll just need to use the link again to download the latest build and follow the steps to apply the updates: https://www.seedcode.com/?smd_process_d ... d_id=10452

Regards,

KC
Posts: 58
Joined: Fri Jul 17, 2009 7:44 am
PostPosted: Thu Sep 05, 2019 2:43 pm
Your steps above are asking for "Load Source Settings at Startup --- Describe Your Sources Here ---" but the picture below that is showing a different script (the correct script). Just FYI.
SeedCode Staff
SeedCode Staff
Posts: 297
Joined: Tue Nov 08, 2016 1:54 pm
PostPosted: Fri Sep 06, 2019 4:09 pm
Thanks, Jim, you're right!

That might be why rbparker was unable to find the lines in their script. I've updated the referred to script in the post.

KC
Posts: 123
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Mon Sep 30, 2019 11:40 pm
Hi KC,

All the steps listed under "Improving support for FileMaker 18" are already like this? What am I missing?

Thanks

Regine
SeedCode Staff
SeedCode Staff
Posts: 297
Joined: Tue Nov 08, 2016 1:54 pm
PostPosted: Tue Oct 01, 2019 7:55 am
Regine,

We added the "Left ( " function to the calculation to limit the result to the first two characters of the version number. This was to fix an issue with files where a comma is used as a decimal point returning a 4 digit number.

The calculation is already there, but you'll want to update all instances of it to account for this.

Regards,

KC
Posts: 123
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Tue Oct 08, 2019 9:32 pm
Hi KC,

But both script steps and the webviewer are already having the variable set exactly like the description with the Left function.

Attached screenshots of the unmodified script and webviewer. So I am wondering if there is anything else that needs to be changed?

Thanks

Regine
Attachments
webviewer.PNG
webviewer.PNG (40.62 KiB) Viewed 794 times
script step 39.PNG
script step 39.PNG (16.75 KiB) Viewed 794 times
script step 36.PNG
script step 36.PNG (16.15 KiB) Viewed 794 times
SeedCode Staff
SeedCode Staff
Posts: 1
Joined: Wed Oct 09, 2019 7:39 am
PostPosted: Wed Oct 09, 2019 11:01 am
Hi Regine,
It looks like you've already completed all the changes you need in your web viewer and script steps, and you should be up to date for this version of DayBack!
Regards,
Becca

Return to DayBack Calendar for FileMaker

Who is online

Users browsing this forum: No registered users and 2 guests

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