<?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: manual grouping - extended version? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549689#M76609</link>
    <description>&lt;P&gt;sounds promising :)&lt;/img&gt;&lt;BR /&gt;Will there be an option to toggle between "raw" and "split" mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not yet sure what's the best way to use the "label".&lt;BR /&gt;Use it as overlay or color would be the first choice, but they are needed to show the actual information of the plot.&lt;BR /&gt;So, perhaps "page"&amp;nbsp; - or groupX ...&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 06:17:49 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2022-09-27T06:17:49Z</dc:date>
    <item>
      <title>manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540203#M76086</link>
      <description>&lt;P&gt;The function &lt;EM&gt;Rows / Row Selection /&amp;nbsp;&lt;/EM&gt;&lt;STRONG&gt;Name Selection in Colum&lt;/STRONG&gt; is very useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can specify a label for the selected and the unselected rows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HolgerSp_0-1662193815636.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45157i71384014D5E0AAC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HolgerSp_0-1662193815636.png" alt="HolgerSp_0-1662193815636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best feature of the function :)&lt;/img&gt;&lt;BR /&gt;You can leave an entry empty - then you can write again and again into the same column and collect infos, like grades for studens in the first example.&lt;/P&gt;&lt;P&gt;If you changed your mind, you can also over-ride previous entires.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the standard behaviour of the function is:&lt;/P&gt;&lt;P&gt;- just do something if the user entered a value&lt;/P&gt;&lt;P&gt;- default action: override the previous entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the function can just be used for disjunct groups, like grades.&lt;BR /&gt;I would like to use the function to collect infos about interesting samples.&lt;/P&gt;&lt;P&gt;For the Big Class Example you could think about sports activities, like in the second example&lt;/P&gt;&lt;P&gt;(here the JSL code, in reality you would &lt;STRONG&gt;go to the menu and open the dialog box&lt;/STRONG&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A problem arises if a student is in 2 teams -&amp;nbsp; then the last call of the function overwrides the entry of the previous one.&lt;/P&gt;&lt;P&gt;Is there some Shift-Click extended version of the function that enables alternative actions like:&lt;/P&gt;&lt;P&gt;- append (perhaps with a clever way to put the commas :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;- prepend&amp;nbsp;&lt;/P&gt;&lt;P&gt;- delete&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example1: grades&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [2, 4, 8, 9, 20, 25, 26, 35, 36] );
wait(2);
dt &amp;lt;&amp;lt; Name Selection in Column( Column Name( "grade" ), Selected( "A" ) );
wait(2);
dt&amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt;Select Rows( [ 14, 17, 18, 19, 23, 31,  38] );
wait(1);
dt &amp;lt;&amp;lt;Name Selection in Column( Column Name( "grade" ), Selected( "B" ) );
wait(1);
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt;Select Rows( [3, 5, 6, 15, 16, 21, 27, 29, 33, 34, 39, 40] );
wait(1);
dt &amp;lt;&amp;lt; Name Selection in Column( Column Name( "grade" ), Selected( "C" ) );
wait(1);
Data Table( "Big Class" ) &amp;lt;&amp;lt; Select Where( :grade == "" );
wait(1);
dt &amp;lt;&amp;lt; Name Selection in Column( Column Name( "grade" ), Selected( "D" ) );
wait(2);

//change grade;
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt;Select Rows( [12] );
wait(2);
dt &amp;lt;&amp;lt; Name Selection in Column( Column Name( "grade" ), Selected( "A" ) );
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example2: sports activities &lt;/STRONG&gt;(unfortunately, append=1 doesn't work)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column("activity", Character, "Multiple Response");

dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [2, 4, 8, 9, 20, 25, 26, 35, 36] );
wait(2);
dt &amp;lt;&amp;lt; Name Selection in Column( Column Name( "activity" ), Selected( " ,football" ) );
wait(2);
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [2, 4, 8, 12, 22, 27, 28, 29, 30] );
wait(1);
dt &amp;lt;&amp;lt;Name Selection in Column( Column Name( "activity" ), Selected( ", Tennis" ), Append=1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540203#M76086</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-10T23:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540206#M76087</link>
      <description>&lt;P&gt;I think there are no such extensions, but you could write your own function(s)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

append_to_selected_rows = function({dt, col_name, new_val, separator = ","}, {Default Local},
	sel_rows = dt &amp;lt;&amp;lt; Get Selected Rows;
	old_rows = dt[sel_rows, "activity"];
	new_rows = Transform Each({old_row}, old_rows,
		If(Is Missing(old_row),
			new_val
		,
			old_row || separator || new_val
		);
	);
	dt[sel_rows, "activity"] = new_rows;
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column("activity", Character, "Multiple Response");

wait(1);
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [2, 4, 8, 9, 20, 25, 26, 35, 36] );
wait(1);
append_to_selected_rows(dt, "activity", "football");

wait(1);
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [2, 4, 8, 12, 22, 27, 28, 29, 30] );
wait(1);
append_to_selected_rows(dt, "activity", "Tennis");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 09:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540206#M76087</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-03T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540236#M76088</link>
      <description>&lt;P&gt;Hi Jarmo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the JSL code.&lt;/P&gt;&lt;P&gt;... and for the opinion: not possible (yet) via JMP GUI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; I created a wish to enable&amp;nbsp;&lt;STRONG&gt;Name Selection in Column &lt;/STRONG&gt;to handle such multiple response information.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Name-Selection-in-Column-extended-options/idi-p/540229" target="_blank"&gt;https://community.jmp.com/t5/JMP-Wish-List/Name-Selection-in-Column-extended-options/idi-p/540229&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let's see if there is more interest ...&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 11:48:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/540236#M76088</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-09-03T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549374#M76584</link>
      <description>&lt;P&gt;As the wish was rejected today, I took Jarmo's code and generated my&amp;nbsp; universal "label" function :)&lt;/img&gt;&lt;BR /&gt;You can put it into a toolbar or link it to a keyboard shortcut.&lt;BR /&gt;Then you can iteratively selected rows, run the script and label the selected columns.&lt;BR /&gt;Previous labels will no longer be deleted.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then the label column can be used for exclusion and highlighting ... and to keep track of the idea behind the decision ...&lt;/P&gt;&lt;P&gt;Less drastic than nuking the rows out ;)&lt;/img&gt;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-Americas-2022/Stay-in-the-Flow-With-Custom-Scripts-and-Toolbars-2022-US-30MP/ta-p/505574#t=112.2,126.2" target="_blank"&gt;https://community.jmp.com/t5/Discovery-Summit-Americas-2022/Stay-in-the-Flow-With-Custom-Scripts-and-Toolbars-2022-US-30MP/ta-p/505574#t=112.2,126.2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Current Data Table();
colNames=dt &amp;lt;&amp;lt; get column names ();
If( !Contains( dt &amp;lt;&amp;lt; get column names( string ), "Label" ),
dt &amp;lt;&amp;lt; New Column("Label", Character, "Multiple Response"));

sel_rows = dt &amp;lt;&amp;lt; Get Selected Rows;
If(Nitems(sel_rows),
If(
	ex = New Window( "label rows",
		&amp;lt;&amp;lt;Modal,
		&amp;lt;&amp;lt;Return Result,
		V List Box(
			H List Box( "Enter label", variable =  Text Edit Box( "selected", Set Width(200) ) ),
			H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )
		)
	);
	ex["button"] == 1;
,
	new_val= ex["variable"];
	
	old_rows = dt[sel_rows, "Label"];
	new_rows = Transform Each({old_row}, old_rows,
		If(Is Missing(old_row),
			new_val
		,
			old_row || ", " || new_val
		);
	);
	dt[sel_rows, "Label"] = new_rows;
	,
	"CANCEL"
),"CANCEL");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2022 16:43:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549374#M76584</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-09-26T16:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549424#M76586</link>
      <description>&lt;P&gt;Is there a list of plots and report types that support "splitting" of multiple response column entries like "Distribution" does?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HolgerSp_0-1664212339520.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45791i1893C237B91C3CD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HolgerSp_0-1664212339520.png" alt="HolgerSp_0-1664212339520.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HolgerSp_1-1664212357150.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45792i51736B8EA8C8690C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HolgerSp_1-1664212357150.png" alt="HolgerSp_1-1664212357150.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HolgerSp_2-1664212521034.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45793i06A2BA3249544AEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HolgerSp_2-1664212521034.png" alt="HolgerSp_2-1664212521034.png" /&gt;&lt;/span&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:15:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549424#M76586</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-09-26T17:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549433#M76587</link>
      <description>&lt;P&gt;I'm not sure if there is such a list, but JMP17 will add support for Graph Builder (&lt;A href="https://www.jmp.com/en_us/software/new-release/new-in-jmp.html#c2022063-9801-4587-93b7-c941c8c5be5fhttps://www.jmp.com/en_us/software/new-release/new-in-jmp.html#c2022063-9801-4587-93b7-c941c8c5be5f" target="_self"&gt;New in JMP17&lt;/A&gt;). &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:31:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549433#M76587</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-26T17:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549689#M76609</link>
      <description>&lt;P&gt;sounds promising :)&lt;/img&gt;&lt;BR /&gt;Will there be an option to toggle between "raw" and "split" mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not yet sure what's the best way to use the "label".&lt;BR /&gt;Use it as overlay or color would be the first choice, but they are needed to show the actual information of the plot.&lt;BR /&gt;So, perhaps "page"&amp;nbsp; - or groupX ...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 06:17:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549689#M76609</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-09-27T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: manual grouping - extended version?</title>
      <link>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549691#M76610</link>
      <description>&lt;P&gt;another thing:&lt;BR /&gt;I think it's a good idea to auto-activate NewFormulaColumn/"group by" for the label column.&lt;BR /&gt;Is there a jsl code to do so?&lt;BR /&gt;Unfortunately, the advanced log doesn't record this action and the new formula column menu doesn't shop up in the Menus and Toolbars dialogue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HolgerSp_0-1664259604568.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45815i581A6B3229F372CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HolgerSp_0-1664259604568.png" alt="HolgerSp_0-1664259604568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 06:26:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/manual-grouping-extended-version/m-p/549691#M76610</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-09-27T06:26:49Z</dc:date>
    </item>
  </channel>
</rss>

