I see that there is a xTuple Custom Widget for Documents in the screen builder. I have created a new table and screen/script but I am at a loss as how to link this documents widget to the screen and table. How do I pass on the new tables id and type to the document widget? Thanks!
You are almost there. You have to tell the Documents widget the entity “Type” and the entity “ID”.
So if you are scripting the Documents widget on a Project screen (it’s an example I know it’s already there), you would need to add the widget to the UI, then script like so:
var _documents = mywindow.findChild("_documents");
_documents.setId(1324); // Whatever the Project ID is
Note: the Type has to match the docass column in the source table.
You sir, are the man! Thanks again.