Question

Regarding Obj-Save and Commit operation

I am using Property-Set on name property of step page after that using Obj-Save with writeitnow checkbox unchecked. Again doing Property-Set on name property with different value in it and Obj-Save with writeitnow checkbox checked, last operation in activity is Commit so what value will be stored in name property? It will overwrite value in name property?

Comments

Keep up to date on this post and subscribe to comments

May 23, 2019 - 11:19am

Hello,

I believe you should get the value of your second Obj-Save. Having said that WriteNow and Commit are both not recommended. 

You should avoid that sort of configuration because one day or another somebody will change the order and break your expectation.

Pega
June 3, 2019 - 9:45am

After the 1st obj-save, as the write-now checkbox is unchecked the changes will not be committed to the database.But after the 2nd obj-save(with write-now checked) the 2nd value will be committed to the database.Finally due to commit operation the uncommitted 1st value will override the 2nd value.So finally the 1st value will be saved in the database .