Getting user input from the ax 2012 form

Hi friends,

I would like to know the code which can enable me get the input of the user(either integer or string) from the form and store the input into a variable so that i can use that variable later on.

Anyone with the idea please show me

You can, for example, set the form control with AutoDeclaration = Yes and refer to it from code by name. Then you can access its properties including the value (e.g. myControl.text()).

If you didn’t already have a form, you could use a dialog.

Thanks Martin

The solution you gave me has worked.I really appreciate