Using xTuple ERP: PostBooks Edition Version 5.0.0-rc , Windows.
At this time , I have modified the crmaccount (The single account screen) to add additional tabs in the tab list.. This works well and the main trick is to call this function at the end of your crmaccount,js file
This ensures that the crmacct id has been loaded and then your tabs screens can get the crmacct_id.
Now , since I want to add tabs to the contact screen, I did that same thing as in the crmaccounts,js.
Add my tabs and screens and scripts after the function
To much of my surprise , the newId function DOES NOT exists in the mywindow, mywidget or mydialog variable in the contact screen.
Right now, the new tab is displayed with the new screen. But I cant get the id of the parent contact screen.
I also tested my new tabs from the Contacts list and select an individual contact. Same results.
Is there another event that I can wire up to complete my contact modifications.
And why doesn't the event newId exists in contact?
Because I noticed in the file cmaccount.cpp , you have the line
But this is not present in the contact.cpp