Hello everyone. Today, I was asked to add a function on my app: when a item has been created and someone edit it in app, the value of "editcount" in datasource should change to 1 from 0. I used a function UpdateIf('Cer-List',ID=SelectedCerItemID,{OData__x7f16__x8f91__x6b21__x6570_:1}) to realize it, the SelectedCerItemID is the Id of the item which is been selected in the gallery. However, the value cannot be change when it is been selected!
For instance, there are two items and their id is 1 and 2 respectively, I make my code like" UpdateIf('Cer-List',ID=1,{OData__x7f16__x8f91__x6b21__x6570_:1}) ",and I select 1 in gallery——the editcount value won't change.However,If I select 2 in gallery and still make Id=1,The value changes to 1!
(btw. I am a Chinese user and "OData__x7f16__x8f91__x6b21__x6570_"means "editcount" in Chinese)
If any one can offer me advice to fix it, I 'll be really appreciate!Thank you in advance.