Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Open the Edit form for newly Created Record?

$
0
0

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 


Viewing all articles
Browse latest Browse all 72043

Trending Articles