I am trying to add a new tab to the PO20 detail/tab area using Lawson Smart Office scripting. Currently the PO20 screen has 6 tabs in the detail area. I want to add a 7th tab to which I want to add additional data elements.
Unfortunately I cannot get the scripting to work to either get the tab page container or add a new tab page. Below is a brief snippet of the scripting code I have. Each of the console.WriteLine values are coming back as undefined.
var aa = form.GetTabPageContainer("TF0-0"); console.WriteLine("GetTabPageContainer: " + aa); var bb = form.AddTabPage("TR0", "TF0-6", "NewTab", ""); console.WriteLine("AddTabPage: " + bb);
I am assuming the issue is that the PO20 screen has a FormGrid which contains a Detail Area which contains a Tab Area.
Any advice is appreciated.
Thank you.
Shawn Van Sluys