<?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 Easy and intuitive editing of multiple cells in data table within a custom window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938868#M109346</link>
    <description>&lt;P&gt;Is there a way to allow users to select, or appear to select, multiple cells in a Table Box, or is there a different object I could use instead? To illustrate the use case, a user might want to move the pump tags from the left table to the right starting on row 2 in the image below. How would they select the block of cells to copy and then paste them?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table copy paste.png" style="width: 205px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97961i0B3BBA3B6982DA40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table copy paste.png" alt="table copy paste.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Editing a data table",
	Show Menu( 0 ), Show Toolbars( 0 ),
	h list box(
		Table Box(
			String Col Edit Box( "PI Point", Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Pump1-" || char(v)) ),
			String Col Edit Box( "Friendly Name", Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Name " || char(v)) )
		),
		spacer box(20,20),
		Table Box(
			String Col Edit Box( "PI Point", {"sinusoid"} || Repeat( { "" }, 14 ) || {"Valve1", "Valve2", "Valve3"} ),
			String Col Edit Box( "Friendly Name", Repeat( { "" }, 15) || {"Inlet", "Outlet", "Recirc"} )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;Scripting the copying and pasting the values should be straight forward, but the user needs to indicate where to get data and where to put it.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Actual Use Case&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to improve the&amp;nbsp;&lt;LI-MESSAGE title="Aveva/OSISoft PI Tools" uid="224525" url="https://community.jmp.com/t5/JMP-Add-Ins/Aveva-OSISoft-PI-Tools/m-p/224525#U224525" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;add-in interface by replacing the text box entry for tags and friendly names with a data table, as discussed &lt;A href="https://github.com/himanga/JMPOSIPITools/issues/17" target="_self"&gt;on an issue in github&lt;/A&gt;.&amp;nbsp; Often users have a list tags in a JMP table or a spreadsheet, and they want to quickly copy/paste them into the add-in user interface.&amp;nbsp; Simply copying the entire table at once is easy enough, but then if a change is needed they might want to just replace a section of the list.&lt;/P&gt;
&lt;P&gt;With the Table Box object it doesn't appear a user can select multiple cells, is there another option here?&amp;nbsp; At one time I thought you could embed an entire data table window inside of a user defined window, but maybe I dreamt that.&lt;/P&gt;
&lt;P&gt;So far my best idea is some sort of mouseover logic that draws squares over 'selected' cells, but I first want to see if there is a simpler solution.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2026 20:47:41 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2026-04-01T20:47:41Z</dc:date>
    <item>
      <title>Easy and intuitive editing of multiple cells in data table within a custom window</title>
      <link>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938868#M109346</link>
      <description>&lt;P&gt;Is there a way to allow users to select, or appear to select, multiple cells in a Table Box, or is there a different object I could use instead? To illustrate the use case, a user might want to move the pump tags from the left table to the right starting on row 2 in the image below. How would they select the block of cells to copy and then paste them?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table copy paste.png" style="width: 205px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/97961i0B3BBA3B6982DA40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table copy paste.png" alt="table copy paste.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Editing a data table",
	Show Menu( 0 ), Show Toolbars( 0 ),
	h list box(
		Table Box(
			String Col Edit Box( "PI Point", Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Pump1-" || char(v)) ),
			String Col Edit Box( "Friendly Name", Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Name " || char(v)) )
		),
		spacer box(20,20),
		Table Box(
			String Col Edit Box( "PI Point", {"sinusoid"} || Repeat( { "" }, 14 ) || {"Valve1", "Valve2", "Valve3"} ),
			String Col Edit Box( "Friendly Name", Repeat( { "" }, 15) || {"Inlet", "Outlet", "Recirc"} )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;Scripting the copying and pasting the values should be straight forward, but the user needs to indicate where to get data and where to put it.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Actual Use Case&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to improve the&amp;nbsp;&lt;LI-MESSAGE title="Aveva/OSISoft PI Tools" uid="224525" url="https://community.jmp.com/t5/JMP-Add-Ins/Aveva-OSISoft-PI-Tools/m-p/224525#U224525" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;add-in interface by replacing the text box entry for tags and friendly names with a data table, as discussed &lt;A href="https://github.com/himanga/JMPOSIPITools/issues/17" target="_self"&gt;on an issue in github&lt;/A&gt;.&amp;nbsp; Often users have a list tags in a JMP table or a spreadsheet, and they want to quickly copy/paste them into the add-in user interface.&amp;nbsp; Simply copying the entire table at once is easy enough, but then if a change is needed they might want to just replace a section of the list.&lt;/P&gt;
&lt;P&gt;With the Table Box object it doesn't appear a user can select multiple cells, is there another option here?&amp;nbsp; At one time I thought you could embed an entire data table window inside of a user defined window, but maybe I dreamt that.&lt;/P&gt;
&lt;P&gt;So far my best idea is some sort of mouseover logic that draws squares over 'selected' cells, but I first want to see if there is a simpler solution.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 20:47:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938868#M109346</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2026-04-01T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Easy and intuitive editing of multiple cells in data table within a custom window</title>
      <link>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938878#M109347</link>
      <description>&lt;P&gt;The command is &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; new data box:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
new window("data box", dt &amp;lt;&amp;lt; new data box)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2026 21:01:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938878#M109347</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-04-01T21:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Easy and intuitive editing of multiple cells in data table within a custom window</title>
      <link>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938996#M109357</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;that is it!!&lt;/P&gt;
&lt;P&gt;These provide a pretty good user experience I think.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table copy paste with new table box.png" style="width: 330px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/98046i78E75D08DA862024/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table copy paste with new table box.png" alt="table copy paste with new table box.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Code to reproduce:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

dt1 = New Table( "dt1", invisible,
	Add Rows( 20 ),
	New Column( "PI Point", Character, "Nominal", Set Values(
		Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Pump1-" || char(v))
	) ),
	New Column( "Friendly Name", Character, "Nominal", Set Values( 
		Repeat( { "" }, 5 ) || Transform Each({v},as list(transpose(1::15)),"Name " || char(v))
	) )
);

dt2 = New Table( "dt1", invisible,
	Add Rows( 20 ),
	New Column( "PI Point", Character, "Nominal", Set Values(
		{"sinusoid"} || Repeat( { "" }, 14 ) || {"Valve1", "Valve2", "Valve3"}
	) ),
	New Column( "Friendly Name", Character, "Nominal", Set Values( 
		Repeat( { "" }, 15) || {"Inlet", "Outlet", "Recirc"}
	) )
);

new window("data box",
	Show Menu( 0 ), Show Toolbars( 0 ),
	h list box(
		ntb1 = dt1 &amp;lt;&amp;lt; New Data Box;
		ntb1 &amp;lt;&amp;lt; close side panels;
		ntb1 &amp;lt;&amp;lt; Set Row ID Width( 50 );
		ntb1 &amp;lt;&amp;lt; Set Width(200);
		ntb1 &amp;lt;&amp;lt; Set Height(450);
		ntb1,
		spacer box( Size( 20, 20 )),
		ntb2 = dt2 &amp;lt;&amp;lt; New Data Box;
		ntb2 &amp;lt;&amp;lt; close side panels;
		ntb2 &amp;lt;&amp;lt; Set Row ID Width( 50 );
		ntb2 &amp;lt;&amp;lt; Set Width(200);
		ntb2 &amp;lt;&amp;lt; Set Height(450);
		ntb2
	),
	&amp;lt;&amp;lt; On close(
		try( dt1 &amp;lt;&amp;lt; Close Window );
		try( dt2 &amp;lt;&amp;lt; Close Window );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;I am still working through some aspects of these - like how to resize the column width inside that box after the table is drawn - but that is for another day!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 13:51:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Easy-and-intuitive-editing-of-multiple-cells-in-data-table/m-p/938996#M109357</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2026-04-02T13:51:23Z</dc:date>
    </item>
  </channel>
</rss>

