Change gz_ModTimeStamp in host file to auto-enter calc
Posted: Wed Jul 17, 2013 10:37 am
I have a situation where I'd like the GoZync mod timestamp to update only for certain fields. Not all fields in the host file exist in the mobile file, and I would like to avoid needless updates to records unless one of the fields that actually need to get updated changes.
To that end, I have developed an auto-enter calc that renders the desired conditional updating. Let's say on Table 1, there are fields a, b, c, d, and e. I only want to update the timestamp if b, c, or d change. I have put together the following auto-enter calc which I would potentially use on the gz_ModTimeStamp field:
Let ( ~trigger = b or c or d ; If ( ~trigger ; Get ( CurrentHostTimestamp ) ; Self ) )
This yields the desired updating only on the relevant fields. I just want to make sure changing this field in this way won't result in other problems with the GoZync software. Your advice would be appreciated!
To that end, I have developed an auto-enter calc that renders the desired conditional updating. Let's say on Table 1, there are fields a, b, c, d, and e. I only want to update the timestamp if b, c, or d change. I have put together the following auto-enter calc which I would potentially use on the gz_ModTimeStamp field:
Let ( ~trigger = b or c or d ; If ( ~trigger ; Get ( CurrentHostTimestamp ) ; Self ) )
This yields the desired updating only on the relevant fields. I just want to make sure changing this field in this way won't result in other problems with the GoZync software. Your advice would be appreciated!