Hi All,
I Got a requirement to automatically show the newly created record's 'Edit Form'. I Wrote code to achieve this in table insert() mehthod. In this menthod i can able to get the newly created RecId. But when i try to open the respective form with that id my AX Client is stopped working and it is restarting. Please any one help me out.
Below is my code in insert(),
MenuFunction menuFunction;
Args args;
PREmplTable newEmpltable;
args = new Args();
super();
args.record(PREmplTable::find(this.RecId));
menuFunction = new MenuFunction(MenuItemDisplayStr(PREmplTable_MasterDetails),MenuItemType::Display);
menuFunction.run();
Regards,
Srikanth