Hi All,
I have a custom requirement, in which I have to access DocuRef attachment in Sales Order form, with my custom form. Right now I have a custom table in which I am getting the field of Sales Id. After some research, I found this static method in DocuRef class:
DocuRef::openDocHandling(Common _common, Object _element);;
In my case
_common: is the SalesTable record, which I can get with SalesTable::find(SalesId);
_element: is the FormRun object, and it seems to be the only missing link as the caller in my case, is my custom form. And sending Null is just resulting in an empty form with no records.
Is there any other of accomplishing the above requirement? I have an add-on requirement as well in which I have to access attachment on Production order with my custom form(I also have the ProdId with me).
Thanks.