Search code examples
dynamics-ax-2009x++axaptaaxdynamics-ax-2012

refresh an int64edit and get selected element


Refresh an int64edit and get selected element.

I have an int64edit, when I select a value I would like to get back this value.

Which method should I use or override ? I tried to override the method " validate " In which I used ValueStr to get the value but it doesn't work as I hoped. some suggestions ?


Solution

  • You could set the int64edit property AutoDeclaration to Yes and then you can access the valueStr() when you need it within the scope of "element" (the form).

    Otherwise the validate() method should be fine, however, the value won't be correct unless you call it AFTER the super().