<?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 Re: JMP scripting - Double FOR loop: H List Box and V List Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/364898#M61433</link>
    <description>&lt;P&gt;I know this is a bit of an old thread to bring back, but I can't tell what was the fundamental change between the two sets of code that fixed the nested loop issue. I'm getting an error in one of my tools using a nested loop, I'm hoping it is related.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Is it just a matter of using that HLB append functionality?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 18:29:24 GMT</pubDate>
    <dc:creator>Evan_Morris</dc:creator>
    <dc:date>2021-03-03T18:29:24Z</dc:date>
    <item>
      <title>JMP scripting - Double FOR loop: H List Box and V List Box</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213126#M42646</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I started to learn scripting and I'm trying to do a Window with 6 scatteplot: 2 vertical + 3 horizontal.&lt;/P&gt;&lt;P&gt;I've tried a double for loop but I don't know why it doesn't work. It gives no error but I cannot get the images.The code is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;BladeList = List( "Blade8", "Blade61", "Blade74" );

New Window( "Oneway Advisor",
	H List Box(
		For( j = 1, j &amp;lt;= 2, j++,
			V List Box(
				For( i = 1, i &amp;lt;= 3, i++,
					Write(i);
					Scatterplot 3D(
						Y( :Name( " x" ), :y, :z ),
						Coloring( :Name( " Mean Io" ) ),
						Legend( 1522 ),
						Frame3D(
							Legend( 1 ),
							Set Grab Handles( 0 ),
							Set Rotation( -64, 0, -41 ),
							Set Marker Scale( 5.2652 )
						),
						Where( :Blade == BladeList[i] &amp;amp; :Embodiment == "THP" ),
						SendToReport(
							Dispatch(
								{},
								"100",
								ScaleBox,
								{Legend Model(
									1522,
									Properties(
										0,
										{gradient( {Color Theme( "Jet" )} )},
										Item ID( " Mean Io", 1 )
									)
								)}
							)
						)
					)
				);
			),
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However if I try a single loop it works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;BladeList = List( "Blade8", "Blade61", "Blade74" );

New Window( "Oneway Advisor",
	H List Box(
		/*For( j = 1, j &amp;lt;= 2, j++,*/
			V List Box(
				For( i = 1, i &amp;lt;= 3, i++,
					Write(i);
					Scatterplot 3D(
						Y( :Name( " x" ), :y, :z ),
						Coloring( :Name( " Mean Io" ) ),
						Legend( 1522 ),
						Frame3D(
							Legend( 1 ),
							Set Grab Handles( 0 ),
							Set Rotation( -64, 0, -41 ),
							Set Marker Scale( 5.2652 )
						),
						Where( :Blade == BladeList[i] &amp;amp; :Embodiment == "THP" ),
						SendToReport(
							Dispatch(
								{},
								"100",
								ScaleBox,
								{Legend Model(
									1522,
									Properties(
										0,
										{gradient( {Color Theme( "Jet" )} )},
										Item ID( " Mean Io", 1 )
									)
								)}
							)
						)
					)
				);
			),
						V List Box(
				For( i = 1, i &amp;lt;= 3, i++,
					Write(i);
					Scatterplot 3D(
						Y( :Name( " x" ), :y, :z ),
						Coloring( :Name( " Mean Io" ) ),
						Legend( 1522 ),
						Frame3D(
							Legend( 1 ),
							Set Grab Handles( 0 ),
							Set Rotation( -64, 0, -41 ),
							Set Marker Scale( 5.2652 )
						),
						Where( :Blade == BladeList[i] &amp;amp; :Embodiment == "THP" ),
						SendToReport(
							Dispatch(
								{},
								"100",
								ScaleBox,
								{Legend Model(
									1522,
									Properties(
										0,
										{gradient( {Color Theme( "Jet" )} )},
										Item ID( " Mean Io", 1 )
									)
								)}
							)
						)
					)
				);
			),
		/*);*/
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can anyone help me with this.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 16:05:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213126#M42646</guid>
      <dc:creator>Pearl</dc:creator>
      <dc:date>2019-06-14T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: JMP scripting - Double FOR loop: H List Box and V List Box</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213242#M42665</link>
      <description>&lt;P&gt;I was not able to get the double loop to work, however, the below method will get you he results you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;BladeList = List( "Blade8", "Blade61", "Blade74" );

New Window( "Oneway Advisor",
	hlb = H List Box()
);
For( j = 1, j &amp;lt;= 2, j++,
	vlb = V List Box(
		For( i = 1, i &amp;lt;= 3, i++,
			sc = Scatterplot 3D(
				invisible,
				Y( :Name( " x" ), :y, :z ),
				Coloring( :Name( " Mean Io" ) ),
				Legend( 1522 ),
				Frame3D(
					Legend( 1 ),
					Set Grab Handles( 0 ),
					Set Rotation( -64, 0, -41 ),
					Set Marker Scale( 5.2652 )
				),
				Where( :Blade == BladeList[i] &amp;amp; :Embodiment == "THP"  ),
				SendToReport(
					Dispatch(
						{},
						"100",
						ScaleBox,
						{Legend Model(
							1522,
							Properties( 0, {gradient( {Color Theme( "Jet" )} )}, Item ID( " Mean Io", 1 ) )
						)}
					)
				)
			), 
		)
	);
	hlb &amp;lt;&amp;lt; append( vlb );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jun 2019 14:28:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213242#M42665</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-15T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: JMP scripting - Double FOR loop: H List Box and V List Box</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213302#M42674</link>
      <description>Thank you very much txnelson for your help! It works perfectly.</description>
      <pubDate>Mon, 17 Jun 2019 10:25:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/213302#M42674</guid>
      <dc:creator>Pearl</dc:creator>
      <dc:date>2019-06-17T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: JMP scripting - Double FOR loop: H List Box and V List Box</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/364898#M61433</link>
      <description>&lt;P&gt;I know this is a bit of an old thread to bring back, but I can't tell what was the fundamental change between the two sets of code that fixed the nested loop issue. I'm getting an error in one of my tools using a nested loop, I'm hoping it is related.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Is it just a matter of using that HLB append functionality?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:29:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-Double-FOR-loop-H-List-Box-and-V-List-Box/m-p/364898#M61433</guid>
      <dc:creator>Evan_Morris</dc:creator>
      <dc:date>2021-03-03T18:29:24Z</dc:date>
    </item>
  </channel>
</rss>

