Announcements
greeting everyone
i want create button to let user crate sales order automatic and skip this screen
i'll pass above info by code how can i do that?
and then i want show me this form for sales order
i see many codes but all inserted line of sales order
but i need from user to insert the line of sales order
here my code working fine but not show me form of sales order
NumberSeq NumberSeq;
;
NumberSeq =NumberSeq::newGetNum(SalesParameters::numRefSalesId());
salesTable.SalesId = NumberSeq.num();
salesTable.initValue();
salesTable.CustAccount = "SCR0001";
salesTable.initFromCustTable();
salesTable.insert();
how can i display forms after created the sales order
Hi mohammed,
Yes. You will need to call SalesTable with a RecId so that the same record is opened in the table.
You might need to implement your code within a ttsBegin ttsCommit block as well so that the data is saved into the table.
is this code will be after
salesTable.insert();
Hi mohammed,
You can try something like this to display sales order form
rgs args; args = new Args(); args.record(salesTable); new MenuFunction(menuItemDisplayStr(SalesTable), MenuItemType::Display).run(args);
André Arnaud de Cal... 291,331 Super User 2024 Season 2
Martin Dráb 230,333 Most Valuable Professional
nmaenpaa 101,156