<?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: Optimize Assign values to selected rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623905#M82279</link>
    <description>&lt;P&gt;Maybe this, but I did not see it being very slow, so maybe this isn't the problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;						dt&amp;lt;&amp;lt;begindataupdate;
						:Bins[dt &amp;lt;&amp;lt; get selected rows] = getbin;
						dt&amp;lt;&amp;lt;enddataupdate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Apr 2023 15:04:23 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-04-19T15:04:23Z</dc:date>
    <item>
      <title>Optimize Assign values to selected rows</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623889#M82277</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a jmp script to assign a string to the selected rows in the graph builder.&lt;/P&gt;&lt;P&gt;The script will generate a wafer map for the X and Y coordinates. Users can select a region of a wafer and assign a string to the selected rows.&lt;/P&gt;&lt;P&gt;The script works fine, but it takes a very long time to assign values to more than 10k selected rows. Am using&amp;nbsp;&lt;STRONG&gt;:Column[rows] = "string" logic&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Is there a way to optimize or assign it faster? Any feedback?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();
New Window( "",
	modal,
	V List Box(
	hlistbox(
		Panel Box( "Assign",
			H List Box(
				Text Box( "Enter :" ), 
								
				Spacer Box( size( 10, 0 ) ),
				tp = Text Edit Box( "", &amp;lt;&amp;lt;setwidth( 60 ) )
			), 
								
			Spacer Box( size( 10, 10 ) ),
			H List Box(
				Button Box( "Assign bin", 
													
					ndies = N Items( dt &amp;lt;&amp;lt; getselectedrows );
					
															
														
					Caption( "Processing... please wait", Font( "Arial Black" ), spoken( 0 ) );
					Wait( 0 );
														
					dt &amp;lt;&amp;lt; label();
					getbin = tp &amp;lt;&amp;lt; get text();
					rowind = dt &amp;lt;&amp;lt; get selected rows;
					:Bins[dt &amp;lt;&amp;lt; get selected rows] = getbin;
					Caption( "Assigned", Font( "Arial Black" ), spoken( 0 ) );
					Wait( 0.2 );
					Caption( remove );
					Wait( 0 );
				)
			)
		), 
		teb = Textbox()),
											
		dt &amp;lt;&amp;lt; Graph Builder(
			Size( 534, 456 ),
			Show Control Panel( 0 ),
			Variables( X( :X coord ), Y( :Y coord ), Color( :Bins ) ),
			Elements( Points( X, Y, Legend( 5 ) ) ),
			Local Data Filter( Add Filter( columns( :Bins ), Where( :Bins == "1" ), Display( :Bins, N Items( 7 ) ) ) )
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:08:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623889#M82277</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T16:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Assign values to selected rows</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623905#M82279</link>
      <description>&lt;P&gt;Maybe this, but I did not see it being very slow, so maybe this isn't the problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;						dt&amp;lt;&amp;lt;begindataupdate;
						:Bins[dt &amp;lt;&amp;lt; get selected rows] = getbin;
						dt&amp;lt;&amp;lt;enddataupdate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:04:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623905#M82279</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-04-19T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Assign values to selected rows</title>
      <link>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623920#M82280</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;it works&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:21:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Optimize-Assign-values-to-selected-rows/m-p/623920#M82280</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-04-19T15:21:33Z</dc:date>
    </item>
  </channel>
</rss>

