Tuesday, 27 September 2016

LIST PAGE Passing through parameter

To pass a parameter value from ListPage:MenuItemButton control to a form in Ax 2012 list page below are the steps..
1. For the MenuItemButton control set the AutoDeclaration property “True”
2. In list page interaction class override the SelectionChanged() method. Add the code to pass parameter value as string. For example:
this.listPage().actionPaneControlParameters(formControlStr(ListPage Name,MenuItemButton Control Name),”Parameter Value”);
2. Now override the init() of the child form which is out put of MenuItemButton. Add the following code to retrieve the same..
info(element.args().parm());

No comments:

Post a Comment

8 Common Errors in Dual-write

502 Bad Gateway : when the target application is not ready to handle the incoming request  401 Unauthorized / 403 Forbidden: This error occ...