axapta - How to keep "Show in content area" when form is open by menuitem from code? -
on few places in our application open listpage in content area. on address line there "company/module/folder". on listpages menuitems calls class create menuitem , open new listpage form like:
args args = new args(); str param = 'something'; menufunction openprojects = new menufunction('listpagename',menuitemtype::display); args.parm(param); openprojects.run(args);
when called address degenerate "company/"
normally display of path depends on property "isdisplayedincontentarea=yes" on menu not know how set in code.
how keep location (at least when same listpage reopen different parameters)?
i using microsoft dynamics ax 2012r2.
it happens when menuitem not in menu used. solution use menuitem exist somewhere in menu.
i see behavior when callers args used instead of creating new args() like:
public static void main (args _args) { menufunction openprojects = new menufunction('listpagename',menuitemtype::display); _args.param('something'); openprojects.run(_args); }
Comments
Post a Comment