January 9, 2010 at 11:03
filed under Dynamics AX
Tagged Dynamics AX, lookup
I had this situation where overriding the lookup() method on a field on a form was not working.
The problem was the AutoDatagroup property on the field group on my grid.
When this property is set to Yes, the lookup override will not work.
Also, when you change this property from ‘No’ to ‘Yes’ when methods have been added or overridden on the fields, the methods wil be cleared and you will loose your code.
Update: see comment by Luegisdorf about overwriting this method in datasource in stead of the control.
Luegisdorf
on January 12, 2010 at 13:40
Hi Klaas
The form will re-construct every node which has AutoDataGroup activated. Therefore you loose every modification inside this node.
But you can overwrite the lookup even you are using an auto data group: just overwrite the lookup method on data source field instead on control node
Regards
Patrick