Hi All,
This is my fist attempt at using GetStorageVar and SetStorageVar, so I hope I'm just doing something silly here. I have a script that runs on table pre-write of the SO_SalesOrderDetail to "SetStorageVar" and another on table post-write to "GetStorageVar." Neither the Set nor the Get appear to be working as they both return a 0 and a LastErrorMsg of "0."
'so_salesorderdetail table pre-write code
sItem1 = ""
retval = 0
retval = oBusObj.GetValue("UDF_Pass_Thru_Item_1$", sItem1)
retval = oScript.SetStorageVar("Item1", sItem1) 'returns a retval of 0 and a LastErrorMsg of "0"
'so_salesorderdetail table post-write code
retval = oScript.GetStorageVar("Item1", sItem1) 'returns a retval of 0 and a LastErrorMsg of "0"
Thank you!