GoZync4

Setup GTRR

Overview

The Go To Related Record script step is one of the fastest ways to move between found sets in a FileMaker solution. Unfortunately it is also one of the steps where you can't substitute data for literal FileMaker layouts and table occurrences: you can't "abstract" it.

So in order to use this script step in GoZync you need to add a couple of lines to the existing "Setup Go To Related Records (TOName)" script for each table occurrence you'd like to sync.

Editing the script

Open GoZyncMobile and edit the script "Setup Go To Related Records (TOName)". You'll see two ElseIF branches for our sample entity "Contacts": one in the "hosted" section, and one in "mobile". Notice how in both cases, the name of the $TOName we're looking for ("gzh_Contact" for example) matches the name of the "from table" in the Go to Related Record step.

You'll want to continue this pattern and add a branch (an ElseIf / Go To Related Record pair) for each of the hosted and mobile tables you're syncing. Do this for both parent and child tables.

Note that the layout you use in every case is "$TOName" and that all the TOs referenced in the "Hosted" section should begin "gzh_" and those in the "Mobile" section should begin "gzm_".

Check your work (important)

After you've edited this script, please check your work by running the script right below it in GoZyncMobile: " --> Then Run This...Test "Setup Go To Related Records (TOName)" Script".

This will make sure that you have a valid branch for each of the table occurrences you've wired into the graph in GoZyncMobile.

(855) SEEDCODE
[email protected]
Follow us: