Thank you Jeff for your support in your email for this issue, and I will put our discussion here so everybody who has the same issue can learn and everybody can make their comments too.
The issue is that the Child table data does not sync unless some data in the parent table is changed.
We don't want the child tables to be synced separately due to transactional reasons. All the tabs are ticked in the integration layout, and I cannot see any error message in the Zync logs.
Child table data only sync when parent table data changed
5 posts
• Page 1 of 1
Posts: 7
Joined: Tue Jun 25, 2013 5:24 pm |
|
Posts: 7
Joined: Tue Jun 25, 2013 5:24 pm |
The following is the helpful reply from Jeff:
|
Posts: 7
Joined: Tue Jun 25, 2013 5:24 pm |
Jeff, I think I understood the cause and solution. But I still have a couple of issues:
1. The editing layout of my Primary TO and its child tables is my Sync Layout. I think it is normal to have the Invoice Items in a Portal of the same layout of the Invoice. 2. I tried to add a script to set the field "gz_ModTimeStamp" in my primary TO (invoices, in this example) to 1, and make it to be trigger by the "OnObjectSave" event trigger of the child table portal. But for some reason (I guess this is a FileMaker issue), it will not be triggered if any data is saved in this child table portal. The only way I can make it work is to make the script to be triggered by the "OnObjectSave" event trigger of each field of the child table portal. But is this the best practice to do this kind of thing, I may have many fields in many levels of parent-child tables. Is there a better way of doing this? Thanks. |
The script trigger to set the "gz_ModTimeStamp" in your primary TO needs to be at the layout-level. Choose the "On Record Commit" option for that.
We advise that you make a dedicated sync layout that is not part of your user-interface. That way you can control the synching rules independent of any UI considerations. You'll have to do this because the designated Zync layout can't have any script triggers on it. This is all described here: http://www.seedcode.com/pmwiki/pmwiki.p ... RecordMods |
|
Posts: 7
Joined: Tue Jun 25, 2013 5:24 pm |
Thank you very much Jeff for your help, and this is working now.
|
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests