Hi all,
How do I call the docuView form in VendInvoiceJournal form? Basically what I want to acheive is to open the DocuView to show the related Purchase Order attachements. I already have a menu item that has this "clicked" method:
DocuRef docuRef;
Args args = new Args();
FormRun formRun;
select * from docuRef where docuRef.RefRecId == _purchTable.RecId &&
docuRef.RefCompanyId == _purchTable.dataAreaId &&
docuRef.RefTableId == _purchTable.TableId;
//docuRef::find(_purchTable.dataAreaId, _purchTable.RecId, false)
args.name(formStr(DocuView));
args.record(docuRef);
args.parm(int642str(docuRef.RecId));
args.caller(this);
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
new MenuFunction(menuitemDisplayStr(DocuView), MenuItemType::Display).run(args);
docuRef::openDocHandling(docuRef, this);
As you can see, I tried different approaches but none of them works. Any help would be greatly appreciated. Thanks.
*This post is locked for comments
I have the same question (0)