Hi.
I just wanna ask is there anyway to retract the state of the page after making a change via setting back the value to oldValue and making sure that HasUnsavedData is false so that Save and Cancel will remain hidden?
So far under crt.HandleViewModelAttributeChangeRequest, I've tried setting the value of
HasUnsavedData to false, but did not work.
Like
If you're saying that you want to change an attribute value, but not have that show as a "change" and have the page show that it has unsaved data, you can use request.preventAttributeChangeRequest = true; when you set the value and it won't trigger a change request for the change. Or did I misunderstand what you're after?
Ryan
Ryan Farley,
Yes and no. I added a logic to check some certain values before deciding if the change in DCM stage is allowed or should I retain oldValue. It is something that BR can't do since I needed to do a prompt.
Yes, I think this will work: request.preventAttributeChangeRequest = true;
Let me try.