GoZync3

Triggering Syncs

GoZync3.TriggeringSyncs History

Hide minor edits - Show changes to output

August 05, 2013, at 04:27 AM by 50.132.84.245 -
Added lines 1-2:
(:include NewerDocs:)
December 20, 2012, at 12:50 AM by cm - punctuation
Changed lines 3-4 from:
At the end of the day, you can control this with scripts, but what GoZync does out of the box is either sync a single record when you pass its ID to the script "Zync It - This Record ( RecordID )" in your mobile file, or syncs "changed records" in the whole table/file when you call the other "Zync It..." scripts.
to:
Ultimately, you can control syncs with scripts, but what GoZync does out of the box is either sync a single record when you pass its ID to the script "Zync It - This Record ( RecordID )" in your mobile file, or syncs "changed records" in the whole table/file when you call the other "Zync It..." scripts.
Changed lines 9-10 from:
In that case you need to add a script trigger which also modifies the parent record. The easiest way to do this is to add a layout level script trigger that runs OnRecordCommit. Have this trigger call a script that sets the field gz_ModTimeStamp in the parent record (the invoice in this case) to 1. Then add a second line to your script: call the Exit Script step with a script result of 1.
to:
In that case you need to add a script trigger which also modifies the parent record. The easiest way to do this is to add a layout-level script trigger that runs OnRecordCommit. Have this trigger call a script that sets the field gz_ModTimeStamp in the parent record (the invoice in this case) to 1. Then add a second line to your script: call the Exit Script step with a script result of 1.
July 13, 2012, at 03:49 PM by 50.132.84.245 -
Added lines 1-11:
!! What makes a record eligible to sync?

At the end of the day, you can control this with scripts, but what GoZync does out of the box is either sync a single record when you pass its ID to the script "Zync It - This Record ( RecordID )" in your mobile file, or syncs "changed records" in the whole table/file when you call the other "Zync It..." scripts.

So what's considered a changed record? Any [[glossary | parent]] record where the field gz_Send is set to 1. (That's one of the fields you pasted into your solution during [[integration]]. You'll see that the auto-enter definition of that field takes care of any instances where that parent record is modified.

But what if you only modify a child record, such as change a line item on an invoice?

In that case you need to add a script trigger which also modifies the parent record. The easiest way to do this is to add a layout level script trigger that runs OnRecordCommit. Have this trigger call a script that sets the field gz_ModTimeStamp in the parent record (the invoice in this case) to 1. Then add a second line to your script: call the Exit Script step with a script result of 1.

That's it. In this way, any edits you make to the invoice line items on this record will mark the parent invoice record as modified.
(855) SEEDCODE
[email protected]
Follow us: