Perform oTrans.Update()

I wish to do a oTrans.Update() in my Serial Number Assignment customization and I am getting the following error. I thought I needed to add a reference but nothing I have done to this point has helped me. Does anyone have any ideas?

Error: CS1061 - line 94 (223) - ‘Erp.UI.App.SerialNumberAssignmentEntry.Transaction’ does not contain a definition for ‘Update’ and no extension method ‘Update’ accepting a first argument of type ‘Erp.UI.App.SerialNumberAssignmentEntry.Transaction’ could be found (are you missing a using directive or an assembly reference?)

oTrans.Update(); is valid for this DLL.

Please can you show me your code?

This is inside Erp.UI.App.SerialNumberAssignmentEntry.dll

image

I have this in a Shown event.

EpiButton btnSerialNumber = (EpiButton)csm.GetNativeControlReference(“c5d2179f-86c3-471d-bd2b-cab09c188b18”);
btnSerialNumber.PerformClick();

This takes me to the SelectSerialNumbers screen and when I get done with that, I want to save it to the job and have read that to accomplish the save, do an oTrans.Update().

Is there a way oTrans is not defined?

I will test tomorrow and let you know.

If you are using a dashboard and an updateable BAQ to do the update, oTrans does not exist. You CAN make a customization on the dashboard (go into it in Developer mode), oTrans will exist there.