I have a report with tabs that I created a journal from.
Let in script, I need to add to the journal sometimes - I want more tabs in it.
Example code is below, but it always puts the new tabs on the bottom of one of the other tabs. The behavior I want is 5 tabs in the journal'd output.
Any help to do this? I tried add instead of append, but can't seem to find right command.
Thanks,
Joe
nw = new window("Tabs",tab box(
tab page box(Title("test1"),text box("1st tab")),
tab page box(Title("test2"),text box("2st tab")),
tab page box(Title("test3"),text box("3st tab"))
)
);
nw << journal;
nw2 = new window("Tabs2",tab box(
tab page box(Title("test4"),text box("4st tab")),
tab page box(Title("test5"),text box("5st tab"))
)
);
current journal() << append(nw2);
great, thanks txnelson. this works for me. i was misundertanding journals, thinking they were always static copies of whatever was being journaled, and hadn't thought to try adding in the way you suggested.
Adding to the journal will do just that, add to the journal, not to the Tab Box();You need to directly reference the tab box() if you want to add to it. Below is a simple rework of your code that is one way to add elements to the journal Tab Box();
nw = new window("Tabs",<<JOURNAL></JOURNAL>