I am trying to add a customization where I have added a epiNumericEditor to a form. Based on the entry value in this control. I want to calculate the value of one of the standard controls on the form.
In particular on the Job Details page of Job Entry Module I want to calculate the following.
Dim QtyParent As EpiNumericEditor = CType(csm.GetNativeControlReference("f184f1a1-cd81-41c7-8347-2e5fc78f8703"), EpiNumericEditor)
if nbrNumUp.Value > 0 then
QtyParent.Value = 1.0 / nbrNumUp.Value
End If
I have tried this on the Leave, AfterExitEditMode, TextChanged and ValueChanged Events.
Nothing happens except in the ValueChanged Evetn where as I type the value in nbrNumUp the calculation shows and QtyParent is updated. But when I tab out of the field QtyParent reverts back to the origianlvalue. It seems that I need to not change the control value property but instead change the underlying table field.
Does any one have a solution?
TIA
Farley
In particular on the Job Details page of Job Entry Module I want to calculate the following.
Dim QtyParent As EpiNumericEditor = CType(csm.GetNativeControlReference("f184f1a1-cd81-41c7-8347-2e5fc78f8703"), EpiNumericEditor)
if nbrNumUp.Value > 0 then
QtyParent.Value = 1.0 / nbrNumUp.Value
End If
I have tried this on the Leave, AfterExitEditMode, TextChanged and ValueChanged Events.
Nothing happens except in the ValueChanged Evetn where as I type the value in nbrNumUp the calculation shows and QtyParent is updated. But when I tab out of the field QtyParent reverts back to the origianlvalue. It seems that I need to not change the control value property but instead change the underlying table field.
Does any one have a solution?
TIA
Farley