Group: Forum Members
Posts: 785,
Visits: 3.6K
|
I don't think I am side-stepping concurrency.
A sales user opens a BO (sales order) to review (not edit).
The status of the order is "Released".
The sales user leaves the window open on the desktop.
The shipping office creates a shipment which completed the order.
The status of the order is automatically changed to "Shipped".
Ideally, I would like to alert the user in real-time that the order was shipped, but I will settle for the user manually initiating the refresh of just the status field. Sure, I could re-query the whole BO, but I don't think it is necessary when only one field has been affected.
I decided to go with the ExecuteScalar route. I put together a small method in the BO that checks the current value against the value queried from the server. If the values differ, I update the BO's value and save (only if the BO's EditingState is idle). That seems to work fine.
Thanks,
Bill
|