I am trying to update the value of a field on a page from a control addin. the field is updated only when leaving the field. But I do not want to leave the field only to get it updated.
So you want to update another field on the page based on something you do in the Control Add-in?
Is the logic which updates the other field on the Validate trigger? If so you can from the control add-in force a "Save" of your current value (default is that the value is saved when you leave the field).
You have to implement IValueControlAddInDefinition (Value and HasValueChanged properties).
Alternatively you can use the OnControlAddIn trigger to update the other field.
/henrik
“This posting is provided "AS IS" with no warranties, and confers no rights.”
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT
Comments
Is the logic which updates the other field on the Validate trigger? If so you can from the control add-in force a "Save" of your current value (default is that the value is saved when you leave the field).
You have to implement IValueControlAddInDefinition (Value and HasValueChanged properties).
Alternatively you can use the OnControlAddIn trigger to update the other field.
/henrik
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT