ObjecStatus is not updating after saving

ObjecStatus is not updating after saving

Old forum URL: forums.lhotka.net/forums/t/10719.aspx


maridob posted on Tuesday, September 27, 2011

So what I am doing is binding the state of objectstatus to my view. This is the first time it  happened to me where it saved successfully but my objectstatus in my detail still thinks that it is still NEW and DIRTY.

Any idea on what's going on?

JonnyBee replied on Tuesday, September 27, 2011

Hi,

Save return a new object. So you your code should be:

     obj = obj.Save();

Otherwise, you would bind the old object to the UI that is still New and Dirty.

maridob replied on Wednesday, September 28, 2011

Hi JonnyBee, thanks for the reply. Actually, it was stupid overlook - of binding name error. Oooops!

 

maridob replied on Wednesday, September 28, 2011

.. but your suggestion is correct that whenever you call the BO save you have to get the new object back.

Copyright (c) Marimer LLC