<?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 creating a journal in a new window with hlist and vlist boxes with a for loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49218#M27974</link>
    <description>&lt;P&gt;Hi. I would like to create a script that creates a new journal with a variable amount of oneway graphs arranged in the way I want.&amp;nbsp; I have tried multipe ways and cannot figure it out.&amp;nbsp; Can someone help me?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to write something like this:&lt;BR /&gt;&lt;BR /&gt;Hlist_MSG1 = "HList Box(( oneway_List[";&lt;BR /&gt;Hlist_MSG2 = "] &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box, ( noz_stat[";&lt;BR /&gt;Hlist_MSG3 = "] &amp;lt;&amp;lt;Report)[";&lt;BR /&gt;Hlist_MSG4 = "] &amp;lt;&amp;lt; Clone Box)";&lt;BR /&gt;&lt;BR /&gt;nw = New Window(name, &amp;lt;&amp;lt;Journal,&lt;/P&gt;&lt;P&gt;vlb = V List Box(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++,&lt;BR /&gt;&lt;BR /&gt;evallist({Hlist_MSG1,&lt;BR /&gt;i;&lt;BR /&gt;Hlist_MSG2;&lt;BR /&gt;i;&lt;BR /&gt;Hlist_MSG3;&lt;BR /&gt;1;&lt;BR /&gt;Hlist_MSG4;&lt;/P&gt;&lt;P&gt;if(i&amp;lt;n_Copies,", ", " ")}));&lt;BR /&gt;&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HLIST_MSG_LST[i] = "HList Box(( oneway_List[" || char(i) || "] &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box, ( noz_stat[" || char(i) || "] &amp;lt;&amp;lt;Report)[1] &amp;lt;&amp;lt; Clone Box)");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;subs_list = {};&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++, subs_list [i] = "num("||char(i)||")");&lt;BR /&gt;&lt;BR /&gt;num_list = {};&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++, num_list [i] = i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;nw = New Window(name, &amp;lt;&amp;lt;Journal,&lt;/P&gt;&lt;P&gt;vlb = V List Box(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++,&lt;BR /&gt;&lt;SPAN&gt;eval(parse(substitute(HLIST_MSG_LST[i],subs_list[i],num_list[i])));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(i&amp;lt;n_Copies,", ", " "));&lt;BR /&gt;&lt;BR /&gt;));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 11:58:52 GMT</pubDate>
    <dc:creator>tova</dc:creator>
    <dc:date>2018-01-04T11:58:52Z</dc:date>
    <item>
      <title>creating a journal in a new window with hlist and vlist boxes with a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49218#M27974</link>
      <description>&lt;P&gt;Hi. I would like to create a script that creates a new journal with a variable amount of oneway graphs arranged in the way I want.&amp;nbsp; I have tried multipe ways and cannot figure it out.&amp;nbsp; Can someone help me?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to write something like this:&lt;BR /&gt;&lt;BR /&gt;Hlist_MSG1 = "HList Box(( oneway_List[";&lt;BR /&gt;Hlist_MSG2 = "] &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box, ( noz_stat[";&lt;BR /&gt;Hlist_MSG3 = "] &amp;lt;&amp;lt;Report)[";&lt;BR /&gt;Hlist_MSG4 = "] &amp;lt;&amp;lt; Clone Box)";&lt;BR /&gt;&lt;BR /&gt;nw = New Window(name, &amp;lt;&amp;lt;Journal,&lt;/P&gt;&lt;P&gt;vlb = V List Box(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++,&lt;BR /&gt;&lt;BR /&gt;evallist({Hlist_MSG1,&lt;BR /&gt;i;&lt;BR /&gt;Hlist_MSG2;&lt;BR /&gt;i;&lt;BR /&gt;Hlist_MSG3;&lt;BR /&gt;1;&lt;BR /&gt;Hlist_MSG4;&lt;/P&gt;&lt;P&gt;if(i&amp;lt;n_Copies,", ", " ")}));&lt;BR /&gt;&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HLIST_MSG_LST[i] = "HList Box(( oneway_List[" || char(i) || "] &amp;lt;&amp;lt; Report) &amp;lt;&amp;lt; Clone Box, ( noz_stat[" || char(i) || "] &amp;lt;&amp;lt;Report)[1] &amp;lt;&amp;lt; Clone Box)");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;subs_list = {};&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++, subs_list [i] = "num("||char(i)||")");&lt;BR /&gt;&lt;BR /&gt;num_list = {};&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++, num_list [i] = i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;nw = New Window(name, &amp;lt;&amp;lt;Journal,&lt;/P&gt;&lt;P&gt;vlb = V List Box(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i=1, i&amp;lt;=n_Copies, i++,&lt;BR /&gt;&lt;SPAN&gt;eval(parse(substitute(HLIST_MSG_LST[i],subs_list[i],num_list[i])));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(i&amp;lt;n_Copies,", ", " "));&lt;BR /&gt;&lt;BR /&gt;));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 11:58:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49218#M27974</guid>
      <dc:creator>tova</dc:creator>
      <dc:date>2018-01-04T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating a journal in a new window with hlist and vlist boxes with a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49219#M27975</link>
      <description>&lt;P&gt;Here is a methodology that I have found to be much easier to build outputs with.&amp;nbsp; I believe it goes after what you are trying to do, but it is simplert to work with, and easier to follow.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );

// Create some structures to hold the results
mainBox = V List Box();
theHBox = H List Box();

// Get the column names for the analysis
colList = dt &amp;lt;&amp;lt; Get Column Names( continuous );

// Loop across the columns and generate the analyis, placing
// 4 analyses into an H List Box(), and then when all 4 are
// in the H List Box(), add it to the main V List Box();
For( i = 1, i &amp;lt;= 25, i++,
	theHBox &amp;lt;&amp;lt; Append( oneway( y( colList[i] ), x( :Site ) ) );
	If( Mod( i, 4 ) == 0 | i == 25,
		mainBox &amp;lt;&amp;lt; Append( theHBox );
		theHBox = H List Box();
	);
);

// Now create the journal to hold all of the results
nw = New Window( "Results", &amp;lt;&amp;lt;journal, finalBox = H List Box() );

// Add the accumulated analyses to the journal
finalBox &amp;lt;&amp;lt; Append( mainBox );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jan 2018 12:40:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49219#M27975</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-04T12:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: creating a journal in a new window with hlist and vlist boxes with a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49224#M27980</link>
      <description>&lt;P&gt;Thanks Jim,&amp;nbsp; I won't be able to try and implement this until next week, so I will update then.&amp;nbsp; But this looks like it should help me.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 14:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49224#M27980</guid>
      <dc:creator>tova</dc:creator>
      <dc:date>2018-01-04T14:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating a journal in a new window with hlist and vlist boxes with a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49225#M27981</link>
      <description>&lt;P&gt;never mind, it was easy to implement, so I don't need to wait until next week to see if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 14:42:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/creating-a-journal-in-a-new-window-with-hlist-and-vlist-boxes/m-p/49225#M27981</guid>
      <dc:creator>tova</dc:creator>
      <dc:date>2018-01-04T14:42:58Z</dc:date>
    </item>
  </channel>
</rss>

