FormWizard - Before Adapter Code Help

Hello,

I have a question. I am trying to figure out what i am missing in E10 Form Wizard. I can get the after field change form wizard event to work.

i have before an adapter event that is not working. it works in vantage 8 so not sure what i need to change. The code in vantage is

Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As object, ByVal args As BeforeAdapterMethodArgs) Handles oTrans_adapter.BeforeAdapterMethod
Dim edv as EpiDataView = CType(oTrans.EpiDataViews(“view”), EpiDataView)
edv.dataview(edv.Row)(“SerialNoQty”) = 9999
’ messagebox.show(edv.dataview(edv.Row)(“SerialNoQty”))

End Sub

whoich works. Below is my E10 code, cant get the above to work. been trying different things to no success

Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As Object, ByVal args As BeforeAdapterMethodArgs)
	Dim edvSerial As EpiDataView = CType(oTrans.EpiDataViews("view"), EpiDataView)
	Select Case args.MethodName
			Case "Update"
			  edvSerial.dataview(edvSerial.Row)("SerialNoQty") = 9999
	End Select

Any help? if i remove the case on E10, the form throws an error.

i got it by adding it to the after field change instead of the adapter method on the form wizard