Pushing Found Sets
GoZync4.PushingFoundSets History
Hide minor edits - Show changes to markup
• In GoZync 4 you'll also want to change the definition of the auto-enter calc for gz_LastAction to this:
• In GoZync 4 you'll also want to change the definition of the auto-enter calc for gz_LatestAction to this:
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer need to add an auto-enter calc to you "Flag" field in order to clear it. You'll now clear the flag by editing the script "Custom Field Mapping: Transformation and Hooks" in GoZyncMobile. Add a SetField() line for your flag field in the "Push" section as shown here:
• In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer need to add an auto-enter calc to your "Flag" field in order to clear it. You'll now clear the flag at the end of sync by editing the script "Custom Field Mapping: Transformation and Hooks" in GoZyncMobile. Add a SetField() line for your flag field in the "Push" section as shown here:
In GoZync 4 you'll also want to change the definition of the auto-enter calc for gz_LastAction to this:
Note that if you haven't edit the script "Custom Field Mapping: Transformation and Hooks" before, it's a very useful part of GoZync in that any fields set within that script are contained within the sync's transaction: that means if something happens to the transaction (record lock or disconnect, for example), changed made within the "Custom Field..." script are reverted along with the rest of the sync. Good stuff: read more here.
• In GoZync 4 you'll also want to change the definition of the auto-enter calc for gz_LastAction to this:
Self )
Self )
That makes sure newly created records are still tagged as "Modified" (and thus not deleted during a pull).
@@[-Case(
Self-]
)
Self )
@@Case(
@@[-Case(
Self
)@@
Self-]
)
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer need to add an auto-enter calc to you "Flag" field in order to clear it. You'll now clear the flag by editing the script "Custom Field Mapping: Transformation and Hooks" in GoZyncMobile. Add a SetField() line for your flag field in the "Push" section as shown here:
http://www.seedcode.com/rootimages/stikipad/gozync/pusher.png
In GoZync 4 you'll also want to change the definition of the auto-enter calc for gz_LastAction to this:
@@Case(
gz_Send = 1 ; "Modified" ; gz_Send = 0 and gz_ModTimeStamp and not $gz_AllowZero ; "Modified" ; Self
)@@
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer need to add an auto-enter calc to you "Flag" field in order to clear it. You'll now clear the flag by editing the script "Custom Field Mapping: Transformation and Hooks" in GoZyncMobile. Add a SetField() line for your flag field in the "Push" section as shown here:
(:attach pusher.png:)
You can even go further an make a new copy of gz_send based on the original auto-enter calc, and use that just to indicated if a record has been edited since the last sync. That way you can base "modified" on that new field making it pretty easy to scan the "modified" records and flag some of them as "ready to send".
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer need to add an auto-enter calc to you "Flag" field in order to clear it. You'll now clear the flag by editing the script "Custom Field Mapping: Transformation and Hooks" in GoZyncMobile. Add a SetField() line for your flag field in the "Push" section as shown here:
(:attach pusher.png:)
(:youtube IAr8uQoDt1I:)
(:youtube IAr8uQoDt1I width=500:)
Tips
In GoZync 4 it's even easier. You still modify gz_Send the same way we show in the video, but you no longer
(:includeurl http://www.youtube.com/watch?v=IAr8uQoDt1I :)
(:youtube IAr8uQoDt1I:)
<iframe width="500" height="281" src="//www.youtube.com/embed/IAr8uQoDt1I" frameborder="0" allowfullscreen></iframe>
(:includeurl http://www.youtube.com/watch?v=IAr8uQoDt1I :)
<iframe width="500" height="281" src="//www.youtube.com/embed/IAr8uQoDt1I" frameborder="0" allowfullscreen></iframe>
This is easily done by changing a few fields in your mobile file. Backup your files and then watch this.
This is easily done by changing a few fields in your mobile file. Backup your files and then watch this.
You can even go further an make a new copy of gz_send based on the original auto-enter calc, and use that just to indicated if a record has been edited since the last sync. That way you can base "modified" on that new field making it pretty easy to scan the "modified" records and flag some of them as "ready to send".
Can I push just *some* of my mobile records back up to the hosted files?
Yes, By default GoZync will push any records that have been changed since the last sync. If there is one 1 such record you want to sync, you can use the script "Zync It - This Record ( RecordID )" to send just that one record. (This is one of the scripts you import into your file when integrating GoZync; read that script's comments for more.)
But what if you want to send just "some" of the records changed since the last sync? For example, you're making orders in the field and have started several, but only finished about ten of them. You don't want to have to manually sync those 10, one by one using "Zync It - This Record ( RecordID )". You'd rather mark those records as "ready" and just sync the "ready" records.
This is easily done by changing a few fields in your mobile file. Backup your files and then watch this.