<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic add tab to journal that has tabs already in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233006#M46210</link>
    <description>&lt;P&gt;I have a report with tabs that I created a journal from.&lt;/P&gt;&lt;P&gt;Let in script, I need to add to the journal sometimes - I want more tabs in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code is below, but it always puts the new tabs on the bottom of one of the other tabs.&amp;nbsp; The behavior I want is 5 tabs in the journal'd output.&lt;/P&gt;&lt;P&gt;Any help to do this? I tried add instead of append, but can't seem to find right command.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; 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() &amp;lt;&amp;lt; append(nw2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 22:22:57 GMT</pubDate>
    <dc:creator>jetpeach</dc:creator>
    <dc:date>2019-11-08T22:22:57Z</dc:date>
    <item>
      <title>add tab to journal that has tabs already</title>
      <link>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233006#M46210</link>
      <description>&lt;P&gt;I have a report with tabs that I created a journal from.&lt;/P&gt;&lt;P&gt;Let in script, I need to add to the journal sometimes - I want more tabs in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code is below, but it always puts the new tabs on the bottom of one of the other tabs.&amp;nbsp; The behavior I want is 5 tabs in the journal'd output.&lt;/P&gt;&lt;P&gt;Any help to do this? I tried add instead of append, but can't seem to find right command.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; 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() &amp;lt;&amp;lt; append(nw2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 22:22:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233006#M46210</guid>
      <dc:creator>jetpeach</dc:creator>
      <dc:date>2019-11-08T22:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: add tab to journal that has tabs already</title>
      <link>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233008#M46211</link>
      <description>&lt;P&gt;Adding to the journal will do just that, add to the journal, not to the Tab Box();&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You need to directly reference the tab box() if you want to add to it.&amp;nbsp; Below is a simple rework of your code that is one way to add elements to the journal Tab Box();&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Tabs",&amp;lt;&amp;lt;journal);
ttt=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 &amp;lt;&amp;lt; append(ttt);

ttt&amp;lt;&amp;lt;insert(4,"test4",text box("4st tab"));
ttt&amp;lt;&amp;lt;insert(5,"test5",text box("5st tab"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 22:37:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233008#M46211</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-08T22:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: add tab to journal that has tabs already</title>
      <link>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233212#M46240</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 17:18:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/add-tab-to-journal-that-has-tabs-already/m-p/233212#M46240</guid>
      <dc:creator>jetpeach</dc:creator>
      <dc:date>2019-11-11T17:18:45Z</dc:date>
    </item>
  </channel>
</rss>

