Let's say I want to open the vendor form in job/code. I coded a very simple select statement that I later want to use to open the vendor form for that specific vendor. How can I achieve this?
VendTable vend;
MenuFunction menuFunction;
Args args = new Args();
select vend
where vend.AccountNum like "*0009*";
info(vend.AccountNum); - shows an AccountNum
args.record(VendTable::find(vend.AccountNum));
menuFunction = new MenuFunction(menuitemdisplaystr(VendTable), MenuItemType::Display);
menuFunction.run(args);
The vendor form open but no data was set. Any help is appreciated.