Showing posts with label Dynamics AX Forms. Show all posts
Showing posts with label Dynamics AX Forms. Show all posts

Wednesday, February 22, 2012

How to check filter is enabled on a form

Query:

How can i check if the filter is enabled on an AX Form.

Answer:

The actions user perform an an ax form are processed in a method called task. You can override that method to see task id 2855. If it is the value then filter is enabled.


Wednesday, June 8, 2011

Passing arguments between two forms

Query:
How can I pass information from 1 form to another?

Answer:
IN the clicked button of form A write following code,
void clicked()
{
    Args args;
    FormRun formRun;
    ;
    super();

    args = new Args(formstr(FormName));
    args.parm(parameters);
    formRun = classFactory.FormRunClass(args);
    formRun.init();
    formRun.run();
    formRun.wait();
    formRun.detach();
    parenttable_ds.refresh(); // Refreshing parent table DataSourceTable
    parenttable_ds.executeQuery(); // Refreshing Parent DataSourceTable Query
}

IN form B init method write following code
args = element.args();
args.parm()