I have some fields in my Sales Order Form (SalesTable) that need to be disabled if another field is set to a specific value. To do this I overrode the enter and the gotFocus methods on the form field (I did both to test it out). The code compiles and doesn't have any issues.
My issue is that neither of these overridden methods are called when I click on a field in the appropriate grid column. What would cause the enter and the gotFocus methods to not be called on a grid field?
Do not use the
gotFocus
andenter
methods.Make a datasource method to make the the change:
Call the method from the the
active
method:Call the method from the datasource field (in this case the
SalesType
field):