Changed in 3.16

Help, Tips, and Tricks for deploying GoZync: our "sync" engine for FileMaker Go.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Nov 21, 2012 6:06 am
Overview

Build 3.16 (Nov 21, 2012) makes a number of changes to harden GoZync and speeds up a whole class of syncs. We've also improved our SQL and introduced better error trapping to make integrating GoZync easier.

We recommend this for all users of 3.14. If you're already up and running these changes will make the addition of new sync tables easier and should give you a speed bump, especially when pulling records down from the host if there are container fields involved.

The Changes

To make these changes please backup your files (really) and then download a copy of 3.16 from our site. You'll copy and paste the following elements from that build into yours. (If you're using a version earlier than 3.14, get that up to 3.14 here before moving to 3.16)

Please follow these steps in order; this looks like a long list but it goes quickly, so take your time.

CUSTOM FUNCTIONS (in GoZyncHosted)…

    Add the following custom function (copy and paste this from 3.16):

      gz_Package_AddTo

    Modify the following functions by replacing the function definition (the calc part) with that from 3.16:

      gz_GetIDs
      gz_Package_AddFieldValuePair
      gz_UseZyncDB

    Delete the following function:

      gz_Package_AddAttachment


SCRIPTS (in GoZyncHosted)...

    Begin by renaming the script

      Build Package - FLM OFF to "Build Package for Found Set"

    Add the following scripts (copy and paste this from 3.16):

      Compact $$gz_PackageData
      Add Data To Package With FLM
      Field Exist on Layout - Hosted
      Field Exist on Layout - Mobile

    Modify the following scripts by replacing all the script steps with the steps from the 3.16 version:

      Startup -{ runs only once }-
      Create Package FROM TO ( List( $TOName | LastZyncID | RecordID ))
      Pull A Single TO (TOName | LastTimeZync | RecordID)
      Prepare Outbox For New Package
      Get IDs For Found Set (PrimaryIDFieldName, Separator)
      Get Fields { FileName } (LayoutName; LayoutTableName)
      Build Package for Found Set
      On Setup 2 of 4 Load
      Check Main Layout's Configuration - Hosted ( 1 of 4 )
      Check Main Layout's Configuration - Mobile ( 1 of 4 )
      Check Required Fields & Scripts ( 3 of 4 )

    Delete the following scripts:

      Reset Header and Data
      Build Package - FLM ON
      Serialize Layout ( PrimaryID )
      Add Attachments to Outbox

CUSTOM FUNCTIONS (in GoZyncMobile)

    Modify the following functions by replacing the function definition (the calc part) with that from 3.16:

      gz_GetIDsToSend
      gz_UseZyncDB

SCRIPTS (in GoZyncMobile)

    Modify the following scripts by replacing all the script steps with the steps from the 3.16 version:

      Startup -{ runs only once }-
      Push One TO ( TOName | RecordID)
      Check Network Connection
      Cache Fields On Layouts (LayoutName; LayoutTableName)
      Serialize Layout ( PrimaryID )
      Parse Package (Package)
      ProgressBar ( Percent )

Finally, you need to make a change to the graph in GoZyncHosted. Add the field DeviceIDUnstored to the GoZync table, copying it from the latest version. Be sure the calc is set to be unstored. Next, change the relationship between GoZync and Outboxes to use this field as shown below, making sure the "Outboxes" side of the relationship is to to "Allow creation of records in this table..."

Image

Now edit the field Interface::GoZyncCodeBase in GoZyncHosted and change the build number to 3.16...you did it.

Enjoy!
John Sindelar
SeedCode
Posts: 142
Joined: Thu Nov 01, 2012 2:36 pm
PostPosted: Thu Dec 20, 2012 10:47 am
The link for 3.16 above takes me to the Downloads page but the only GoZync file I can find on there is for 3.17?
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Thu Dec 20, 2012 11:38 am
Hi Brian,

We just released 3.17 and have the updated info here:

http://www.seedcode.com/pmwiki/pmwiki.p ... ionHistory

You can use the info there to update your file, and we would want you to incorporate the changes up through 3.17 as well.

Thanks!
Posts: 142
Joined: Thu Nov 01, 2012 2:36 pm
PostPosted: Thu Dec 20, 2012 12:21 pm
Hi Jason,
I want to update to 3.17 and when I check GoZyncHosted, it says I'm on 3.151 so I want to make sure that I can get 3.17 properly.

The page you linked to says that I need to update to 3.16 first so it's those files I need:
"Build 3.16 (November 21, 2012). With this version we've made a lot of changes to speed up syncs, squashed a few integration bugs, and made the integration process a little more hardy. Changes in 3.16 can be applied to your build by following the instructions here. We recommend this update for all users of 3.14 even if you're already up and running."

The link in the above paragraph for downloading 3.16 takes me to:
viewtopic.php?f=38&t=3746 This page then points me to:
http://www.seedcode.com/downloads/downloads.php but this does not have 3.16, only 3.17 so I'm just going around in circles again and again...
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Thu Dec 20, 2012 12:50 pm
Hi Brian,

All the changes referenced in 3.16 are in 3.17, so you should be able to use 3.17 for the changes described for getting to 3.16.

I'll check with John if he can send you a copy of 3.16 if that will help.

Cheers!
Posts: 142
Joined: Thu Nov 01, 2012 2:36 pm
PostPosted: Thu Dec 20, 2012 1:07 pm
Hi Jason,
I went through the check list and all the new functions and scripts already existed in my file so maybe the version number as the only thing that didn't get updated last time.

Just ran through the 3.17 update so all should be ok now...

Thanks
Brian.
SeedCode Staff
SeedCode Staff
Posts: 691
Joined: Mon Feb 28, 2011 2:47 pm
PostPosted: Thu Dec 20, 2012 1:39 pm
Great Brian,

Thanks for following up.

Cheers!

Return to GoZync

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: