Someone please intercept my trip to the insane asylum...
Simple script to take CI_Item StandardUnitCost and store it as the P/O UnitCost on the QuantityOrdered Column-Post Validate event:
1. retVal1 = oItem.GetValue(""StandardUnitCost"", nUnitCost)
2. retVal2 = oBusObj.SetValue(""UnitCost"", nUnitCost)
Works fine. However, if I change the StandardUnitCost in I/M (and Accept the change) the updated cost isn't ""seen"" by subsequent GetValue's for an existing P/O detail line. If I add a new line (same item), the updated cost is ""seen"". DebugPrint statements confirm that the GetValue is retrieving old values for existing lines and new values for new lines. Too weird. TIA