Main Table Functionality in Ax 2012

How to get that functionality in our forms or table. This is done by three ways:

1) By EDT Relations
2) By using JumpRef method
3) By using FormRef property in Table

EDT Relations:
If you use an EDT in tables which have relation with some other table fields, that time you can able to navigate the main table or main form.

FormRef Property:
Select the Table and go to properties and select the required form in the FormRef property.

JumpRef method:
If you are not having that option, simply write an override the JumpRef method in a field of DataSource or in a Form Control. Here i show you a sample jumpRef method code:

public void jumpRef()
{
   Args            args;
   MenuFunction    menuFunction;
   ;
   args = new Args();
   menuFunction = new MenuFunction(menuitemDisplayStr(FormName), MenuItemType::Display);
   args = new Args(menuFunction.object());
   args.caller(element);
   args.record(RecordName); // to be a datasource which added in the current form
   menuFunction.run(args);
}

Related Posts

Previous
Next Post »

Thanks for comments.....