开发者

Filemaker CWP safety

开发者 https://www.devze.com 2023-01-08 16:29 出处:网络
In developing a CWP, is there a way to use the record id and mod id to enusure the record has not been modified since to provide a fallback instead of a race condition if 2 updates are sent?开发者_C百

In developing a CWP, is there a way to use the record id and mod id to enusure the record has not been modified since to provide a fallback instead of a race condition if 2 updates are sent?开发者_C百科


The modification id is the amount of times the record has been modified. using FX, you can do a ->addDbParam('-mkodid',$modid); or a ->SetModID($modid); and Filemaker will compare this number, and if there has been any modifications; it will error out with an errorCode of 306.

0

精彩评论

暂无评论...
验证码 换一张
取 消