Hi everyone,
I hope you are doing well. I'm trying to get a PurchLine as a datasource from PurchTable(Form) with the following code but, unfortunately, I'm getting the above error.
The idea is to change the delivery date when a certain field<custom> value changes or is modified.
FormRun formRun = sender.datasource().formRun();
FormDataSource purchLine_ds = formRun.dataSource(2); //sender.datasource().formRun().dataSource('PurchLine');
PurchTable _purchLine = purchLine_ds.cursor();
ttsbegin;
_purchLine.DeliveryDate = today() 5;
_purchLine.update();
ttscommit;
Your suggestions are welcome!
Thank you.