Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Regular Contributor
Gator
Posts: 269
Registered: 12-05-2008

Re: Writing to IM_ItemCost

It is probably the difference between what is kept in memory and what is written to the physical table.  I believe a SetValue only changes what is in memory, and it will not be committed to the physical table until the Write.  It looks like GetValue retrieves from what is in memory.

Sage Employee
jepritch
Posts: 233
Registered: 08-25-2009

Re: Writing to IM_ItemCost

That is true, this value will only appear in the table once a successful Write() is performed.

 

retVal = oItemCost.Write()

Super Contributor
connex
Posts: 791
Registered: 10-29-2008
0

Re: Writing to IM_ItemCost

The Write() returns 0 and the oItemCost.LastErrorMsg is "The Transaction Date is required".

 

I'm getting somewhere. I'll try a SetValue to the Transaction Date. Thanks Gator.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
Super Contributor
connex
Posts: 791
Registered: 10-29-2008
0

Re: Writing to IM_ItemCost

That was the trick, the Transaction Date had to be set! Thanks Elliot. Thanks Gator.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here