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

X++ Code - Open CustOpenTrans form

$
0
0

hi,

I'm trying to create a job to open "CustOpenTrans" form but whenever I declare args.record() to a specific customer, it tends to select all customers and takes a long time to open the form. How can I pass args to the form to only the specific customer

Below is my code: 

static void OpenFormByCodeB()
{ Object formRun;
Args args = new Args();
;
args.name(formstr(CustOpenTrans));
args.record(CustTable::find(AccountNum));

formRun = ClassFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
}

thanks!


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>