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

Create new vendor invoice by X++ code using FormRun

$
0
0

Hi everyone,

I am trying to create a new vendor invoice in creation mode using this code : 

PurchFormLetter_Invoice purch;
Args args;
FormRun run;


purch = PurchFormLetter::construct(DocumentStatus::Invoice);

purch.parmOpenMode(OpenMode::New);


args = new args(formStr("VendEditInvoice"));

args.caller(purch);

run = classFactory.formRunClass(args);

run.init();

run.run();

run.detach();

The form is not opening because there seems to be missing a parmId in the init() method of VendEditInvoice...


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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