Since we custome many of the standard xTuple screens, such as crmacct, vendor, etc. I add custom screen to the tab list of the screen.
Basically, I pass the id of the screen to my custom script to fill the custom screen, using mywidget.id() function.
This works in crmacct, vendor,sales order, invoices, ect.
But when I try to do the same in the Contract screen, the debugger throws an error; and upon inspection of the mywidget variable. I find NO id() function.
Is there a way to get the contract id from the contratc screen?