<?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: Select Where() not working in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274936#M53343</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lines 25-29 should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_sum = Open( "DSA_ALL.jmp" );
dt_sum &amp;lt;&amp;lt; Clear Column Selection();
dt_sum &amp;lt;&amp;lt; Clear Select;
ob_sum &amp;lt;&amp;lt; Append( dt_sum &amp;lt;&amp;lt; Get As Report );
ob_sum[Table Box( 1 )] &amp;lt;&amp;lt; Set Scrollable( 0, 0 );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Jun 2020 10:19:30 GMT</pubDate>
    <dc:creator>HadleyMyers</dc:creator>
    <dc:date>2020-06-23T10:19:30Z</dc:date>
    <item>
      <title>Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274855#M53319</link>
      <description>&lt;P&gt;I try to append variability chart and selected row of data into journal. But i have problem to append the selected row into journal. Can anyone please advise?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beside this, i also got another warning error. How i can fix the error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot find item "Concat" in outline context {"Variability Chart for " || valuesMatrix[i]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for( i=1, i&amp;lt;=NItems(valuesMatrix), i++,
		obj_chart = dt_wo_spec &amp;lt;&amp;lt; Variability Chart(
			Y( valuesMatrix[i]  ),
			X( :Product, :Lot, :Wafer Number ),
			Connect Cell Means( 1 ),
			Std Dev Chart( 0 ),
			Show Box Plots( 1 ),
			SendToReport(
				Dispatch(
					{"Variability Chart for " || valuesMatrix[i]},
					"Variability Chart",
					FrameBox,
					{Row Legend( Product, Color( 1 ), Color Theme( "JMP Default" ), Marker( 1 ) )}
				)
			)
		);
	lub &amp;lt;&amp;lt; append ( Report (obj_chart ));
	lub &amp;lt;&amp;lt; append( dt_sum &amp;lt;&amp;lt; Select Where( :PCM == valuesMatrix[i] ) ); // this part is not working
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my data table &amp;amp; script&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:30:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274855#M53319</guid>
      <dc:creator>OneNorthJMP</dc:creator>
      <dc:date>2023-06-09T23:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274919#M53337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the issue with the line is that, earlier in the code, you reassigned dt_sum to be a DisplayBox.&amp;nbsp; Also, I think we need to define the row as a report if we want to append it to a journal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've changed the for-loop as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for( i=1, i&amp;lt;=NItems(valuesMatrix), i++,
		obj_chart = dt_wo_spec &amp;lt;&amp;lt; Variability Chart(
			Y( valuesMatrix[i]  ),
			X( :Product, :Lot, :Wafer Number ),
			Connect Cell Means( 1 ),
			Std Dev Chart( 0 ),
			Show Box Plots( 1 ),
			SendToReport(
				Dispatch(
					{"Variability Chart for " || valuesMatrix[i]},
					"Variability Chart",
					FrameBox,
					{Row Legend( Product, Color( 1 ), Color Theme( "JMP Default" ), Marker( 1 ) )}
				)
			)
		);
	lub &amp;lt;&amp;lt; append ( Report (obj_chart ));
	lub &amp;lt;&amp;lt; append( dt_sum &amp;lt;&amp;lt; Select Where( :PCM == valuesMatrix[i])&amp;lt;&amp;lt;Get As Report ) ; // this part is not working
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I also changed the part where you define dt_sum as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_sum = Open( "DSA_ALL.jmp" );
dt_sum &amp;lt;&amp;lt; Clear Column Selection();
dt_sum &amp;lt;&amp;lt; Clear Select;
ob_sum &amp;lt;&amp;lt; Append( dt_sum &amp;lt;&amp;lt; Get As Report );
ob_sum[Table Box( 1 )] &amp;lt;&amp;lt; Set Scrollable( 0, 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please try that and let me know if it works.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:00:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274919#M53337</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-06-23T09:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274926#M53339</link>
      <description>Hi Hadley,&lt;BR /&gt;&lt;BR /&gt;Thanks for reply. I try modified the code accordingly. But it is still give me error. :(&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;The display box 'BorderBox' does not recognize the message 'Select Where'; perhaps you mean one of these: &amp;lt;&amp;lt;Select &amp;lt;&amp;lt;GetLeft &amp;lt;&amp;lt;Set Color &amp;lt;&amp;lt;Set Style &amp;lt;&amp;lt;Deselect &amp;lt;&amp;lt;Set Dirty &amp;lt;&amp;lt;Selectable &amp;lt;&amp;lt;Set Report Title &amp;lt;&amp;lt;Delete Box &amp;lt;&amp;lt;Delete &amp;lt;&amp;lt;Show Tree Structure &amp;lt;&amp;lt;Get Picture &amp;lt;&amp;lt;Save Text &amp;lt;&amp;lt;Save Picture &amp;lt;&amp;lt;Save Capture &amp;lt;&amp;lt;Set Window Size &amp;lt;&amp;lt;Set Content Size &amp;lt;&amp;lt;Set Print Headers &amp;lt;&amp;lt;Set Page Setup &amp;lt;&amp;lt;Get Web Support &amp;lt;&amp;lt;SetNotStretchable &amp;lt;&amp;lt;Set Auto Centering &amp;lt;&amp;lt;Get Width &amp;lt;&amp;lt;Set Width &amp;lt;&amp;lt;Set Height &amp;lt;&amp;lt;Set Property &amp;lt;&amp;lt;Get Properties &amp;lt;&amp;lt;Set Property &amp;lt;&amp;lt;Get Properties.</description>
      <pubDate>Tue, 23 Jun 2020 09:37:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274926#M53339</guid>
      <dc:creator>OneNorthJMP</dc:creator>
      <dc:date>2020-06-23T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274931#M53341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that dt_sum is being redefined as a DisplayBox.&amp;nbsp; Can you post your entire modified code?&amp;nbsp; I'll see if I can spot where this is happening.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:54:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274931#M53341</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-06-23T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274932#M53342</link>
      <description>&lt;P&gt;here is my modified script. The original script is already upload in my original post with all data tables relevant to the JSL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Symbols();
Clear Log();
Close All( Data Tables, NoSave );
Close All( Journals, NoSave );

//dt_sum &amp;lt;&amp;lt; clear select;
//Current Data Table( dt_sum );

//dt_sum = Current Data Table();

nw = New Window( "Reports",
	&amp;lt;&amp;lt;Journal,
	hlb = H List Box(
		lub = Lineup Box( N Col( 1 ) )
	)
);

lub &amp;lt;&amp;lt; Append( tb = Text Box( "PCM DSA report. Updated on : " || Short Date( Today() ) ));
tb &amp;lt;&amp;lt; Set Font Size( 14 ) &amp;lt;&amp;lt; Set Font Style( "Bold" ) &amp;lt;&amp;lt; Justify Text( "center" );
tb &amp;lt;&amp;lt; set width(700) &amp;lt;&amp;lt; set wrap(700);

lub &amp;lt;&amp;lt; Append( ob_sum = Outline Box( "Statistic Summary" ) );

dt_sum = Open( "DSA_ALL.jmp" );
dt_sum &amp;lt;&amp;lt; Clear Column Selection();
dt_sum &amp;lt;&amp;lt; Clear Select;
ob_sum &amp;lt;&amp;lt; Append( dt_sum = Current Data Table() &amp;lt;&amp;lt; Get As Report );
dt_sum[Table Box( 1 )] &amp;lt;&amp;lt; Set Scrollable( 0, 0 );

lub &amp;lt;&amp;lt; Append( Page Break Box() );
lub &amp;lt;&amp;lt; Append( ob_biv = Outline Box( "BIV" ) );

//Overview
ob_biv &amp;lt;&amp;lt; Append(
	Bivariate(
		Y( :DSA ),
		X( :Ppk of SMIC ),
		SendToReport(
			Dispatch( {}, "1", ScaleBox, {Add Ref Line( 1.33, "Solid", "Black", "Cpk1.33", 1 )} ),
			Dispatch( {}, "2", ScaleBox, {Add Ref Line( 1.5, "Solid", "Black", "DSA1.5", 1 )} ),
			Dispatch(
				{},
				"Bivar Plot",
				FrameBox,
				{Row Legend(
					Zone,
					Color( 1 ),
					Color Theme( "JMP Default" ),
					Marker( 1 ),
					Marker Theme( "Standard" ),
					Continuous Scale( 0 ),
					Reverse Scale( 0 ),
					Excluded Rows( 0 )
				)}
			)
		)
	)
);

lub &amp;lt;&amp;lt; Append( tb1 = Text Box( "Zone1:Cpk&amp;lt;1.33 &amp;amp;&amp;amp; DSA&amp;gt;1.5
Zone2:Cpk&amp;lt;1.33 &amp;amp;&amp;amp; DSA&amp;lt;1.5 
Zone3:Cpk&amp;gt;1.33 &amp;amp;&amp;amp; DSA&amp;gt;1.5
Zone4:Cpk&amp;gt;1.33 &amp;amp;&amp;amp; DSA&amp;lt;1.5" ) );


tb1 &amp;lt;&amp;lt; Set Font Size( 14 ) &amp;lt;&amp;lt; Set Font Style( "Bold" ) &amp;lt;&amp;lt; Justify Text( "left" );
tb1 &amp;lt;&amp;lt; set width(700) &amp;lt;&amp;lt; set wrap(700);

lub &amp;lt;&amp;lt; Append( Page Break Box() );

//Open limit files to get the parameters into list
dt_limit = Open( "Limit.jmp" );
dt_wo_spec = Open( "JOIN.jmp" );

//Group1 
lub &amp;lt;&amp;lt; Append( Page Break Box() );

lub &amp;lt;&amp;lt; Append( tb2 = Text Box( "Group 1 Parameters : Target process is MF process and test key is the same as MF version" ) );
tb2 &amp;lt;&amp;lt; Set Font Size( 14 ) &amp;lt;&amp;lt; Set Font Style( "Bold" ) &amp;lt;&amp;lt; Justify Text( "Center" );
tb2 &amp;lt;&amp;lt; set width(1000) &amp;lt;&amp;lt; set wrap(1000);
lub &amp;lt;&amp;lt; Append( Page Break Box() );

Current Data Table(dt_limit);
dt_limit &amp;lt;&amp;lt; Select Where( :DSA Group == 1 );
//dt_limit &amp;lt;&amp;lt; Select Where( as Column("DSA Group") == 1 );
Group1List = :new_name[dt_limit &amp;lt;&amp;lt; get selected rows];
Show( Group1List);

for( i=1, i&amp;lt;=NItems(Group1List), i++,
		obj_chart_g1 = dt_wo_spec &amp;lt;&amp;lt; Variability Chart(
			Y( Group1List[i]  ),
			X( :Product, :Lot, :Wafer Number ),
			Connect Cell Means( 1 ),
			Std Dev Chart( 0 ),
			Show Box Plots( 1 ),
			SendToReport(
				Dispatch(
					{},
					"Variability Chart for " || Group1List[i],
					OutlineBox,
					{Set Title( "Group 1 Variability Chart for " || Group1List[i])}
				),
				Dispatch(
					{"Variability Chart for " || Group1List[i]},
					"Variability Chart",
					FrameBox,
					//{Row Legend( Product, Color( 1 ), Color Theme( "JMP Default" ), Marker( 1 ), Marker Theme( "Standard" ), Continuous Scale( 0 ), Reverse Scale( 0 ), Excluded Rows( 0 ))}
					{Row Legend( Product, Color( 1 ), Color Theme( "JMP Default" ), Marker( 1 ), Marker Theme( "Standard" ))}
				)
			)
		);
	lub &amp;lt;&amp;lt; append ( Report (obj_chart_g1 ));
	//lub &amp;lt;&amp;lt; append( dt_sum &amp;lt;&amp;lt; Select Where( :PCM == Group1List[i] ) ); // this part is not working
	lub &amp;lt;&amp;lt; append( dt_sum &amp;lt;&amp;lt; Select Where( as column("PCM") == Group1List[i] ) &amp;lt;&amp;lt;Get As Report ) ; 
);
 
 
    
Reports = Current Journal();
Reports &amp;lt;&amp;lt; Set page setup( margins( 0.1, 0.1, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "A4" ) );

Reports &amp;lt;&amp;lt; get page setup();
Reports &amp;lt;&amp;lt; SavePDF("DSA_report.pdf");

//Close All( Data Tables, NoSave );
//Close All( Journals, NoSave );
//Exit();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:59:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274932#M53342</guid>
      <dc:creator>OneNorthJMP</dc:creator>
      <dc:date>2020-06-23T09:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274936#M53343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lines 25-29 should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_sum = Open( "DSA_ALL.jmp" );
dt_sum &amp;lt;&amp;lt; Clear Column Selection();
dt_sum &amp;lt;&amp;lt; Clear Select;
ob_sum &amp;lt;&amp;lt; Append( dt_sum &amp;lt;&amp;lt; Get As Report );
ob_sum[Table Box( 1 )] &amp;lt;&amp;lt; Set Scrollable( 0, 0 );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 10:19:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274936#M53343</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-06-23T10:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274978#M53354</link>
      <description>&lt;P&gt;Hi Hadley,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After modified the script to below, it give me error. it does not work for me.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;ob_sum &amp;lt;&amp;lt; Append( dt_sum &amp;lt;&amp;lt; Get As Report );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;invalid subscript (must be number or list of numbers) in access or evaluation of 'dt_sum[Table Box(1)]' , dt_sum[/*###*/Table Box( 1 )]&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 13:24:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274978#M53354</guid>
      <dc:creator>OneNorthJMP</dc:creator>
      <dc:date>2020-06-23T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274981#M53355</link>
      <description>&lt;P&gt;I think the problem is with the line after that one.&amp;nbsp; It should read:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ob_sum[Table Box( 1 )] &amp;lt;&amp;lt; Set Scrollable( 0, 0 );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 13:30:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274981#M53355</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-06-23T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274996#M53360</link>
      <description>&lt;P&gt;Hi Hadley,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right! After i comment out the line, it can work now ! Thanks for input.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 13:50:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/274996#M53360</guid>
      <dc:creator>OneNorthJMP</dc:creator>
      <dc:date>2020-06-23T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Where() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/275000#M53361</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure thing, happy to have helped.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:07:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Where-not-working/m-p/275000#M53361</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-06-23T14:07:01Z</dc:date>
    </item>
  </channel>
</rss>

