UD methods and on field expressions different in Kinetic?

Here is an example of our UD method…

Here is our on field change…

Inputs.numAXLEPrc.Value = await UDMethods.GetOptPrice(Inputs.txtClsModel.Value,“AXLE”,Inputs.AXLE.Description);

What needs to change in kinetic to make this work? All worked fine in Classic. Currently its not populating prices for options in the UI.

No errors are coming up.

1 Like

This is going to seem silly, but try changing converting the return to a Double:

Inputs.numAXLEPrc.Value = await Convert.ToDouble(UDMethods.GetOptPrice(Inputs.txtClsModel.Value,“AXLE”,Inputs.AXLE.Description));

I get this error message…

double’ does not contain a definition for ‘GetAwaiter’ and no accessible extension method ‘GetAwaiter’ accepting a first argument of type ‘double’ could be found (are you missing a using directive or an assembly reference?)