New Posts New Posts RSS Feed: Previous values of object
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Previous values of object

 Post Reply Post Reply
Author
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Topic: Previous values of object
    Posted: 13-Aug-2010 at 6:36pm

Good question.  This should do it:

originalValue = lineItem.EntityAspect.GetValue(SalesInvoiceLine.PropertyMetadata.Quantity, EntityVersion.Original);
 
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 11-Aug-2010 at 7:49am
I have an object called SalesInvoiceLine which maps to a table called SalesInvoiceLines. Before I save the object I want to know if the quantity field has changed in order to know if I have to update the inventory and by how much. How do I see the previous value of the row?
 
Bill
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down