<?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: Enable column operations in custom UI (JSL) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275876#M53535</link>
    <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I've tried Column Dialog and it certainly offers the option to manipulate columns. However, I was hoping to implement that option in the context of 'new window'.&lt;/P&gt;&lt;P&gt;In order to better guide the user through their options, I've split the columns into 3 panels. I only want to offer the option to transform columns in Panel 2. i&lt;/P&gt;&lt;P&gt;I don't think 'column dialog' would offer me the flexibility to split the columns in multiple selection panels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion to be able to invoke the same right click menu in the context of&amp;nbsp; 'new window' as for 'column dialog'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a simplified version of the script I've put together&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
Names Default To Here( 1 );
dy = Open( "$SAMPLE_DATA/Fitness.jmp" );;
ls = dy &amp;lt;&amp;lt; get name();
Show( ls );

Varls = dy &amp;lt;&amp;lt; get column names( continuous );
Show( Varls );


c = "Run";
col = dy &amp;lt;&amp;lt; get column names( string );
Show( col );
TPMls = {};
nc = N Items( col );
For( i = 1, i &amp;lt;= nc, i++,
	If( Contains( col[i], c ),
		Show( col[i] );
		Insert Into( TPMls, col[i] );
	)
);
Show( TPMls );

catls = {"Name","Sex"};
nc = N Col( dy );
lbWidth = 200;
pdwidth = 400;
stop_flag = 0;
Resplg = New Window( "FIND TRANSCRIPTS OF INTEREST",
	Empty(),
	Border Box( Left( 10 ), top( 2 ), Right( 10 ),
		V List Box(
			V List Box(
				Panel Box( "Purpose of analysis platform",
					Text Box(
						"Perform ....
",
						set wrap( 800 )
					)
				),
				Panel Box( "Panel 1",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						colListTPM = Col List Box(
							width( pdWidth ),
							&amp;lt;&amp;lt;append( TPMls ),
							nLines( Min( nc, 2 ) ),
							"numeric",
							&amp;lt;&amp;lt;set analysis type( "continuous" )
						),
						Button Box( "TPM",
							TPM &amp;lt;&amp;lt; Append( colListTPM &amp;lt;&amp;lt; GetSelected )
						),
						TPM = Col List Box(
							width( lbWidth ),
							nLines( 1 ),
							Minitems( 1 ),
							Maxitems( 1 ),
							"numeric"
						)
					)
				),
				Panel Box(
					"Panel 2",
					text box("Suggest ...", set wrap (800)),
					Lineup Box( N Col( 3 ), spacing( 5 ),
						V List Box(
							var = Col List Box(
								width( pdWidth ),
								&amp;lt;&amp;lt;append( varls ),
								nLines( Min( nc, 5 ) )
							)
						),
						Button Box( "Variable",
							Varl &amp;lt;&amp;lt; Append( var &amp;lt;&amp;lt; GetSelected ) 
						),
						Varl = Col List Box(
							width( lbWidth ),
							nLines( 1 ),
							Minitems( 1 ),
							Maxitems( 1 )
						)
					)
				),
				Panel Box(
					"Panel 3",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						cat = Col List Box(
							width( pdWidth ),
							&amp;lt;&amp;lt;append( catls ),
							nLines( Min( nc, 5 ) ),
							"character",
							&amp;lt;&amp;lt;set analysis type( "nominal" )
						),
						Button Box( "By", catl &amp;lt;&amp;lt; Append( cat &amp;lt;&amp;lt; GetSelected ) ),
						catl = Col List Box(
							width( lbWidth ),
							nLines( 2 ),
							Minitems( 1 ),
							Maxitems( 2 ),
							"character"
						)
					)
				),
				Panel Box( "Action",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						ex = Button Box( "Go" ),
						Button Box( "Cancel",
							Resplg &amp;lt;&amp;lt; Close Window;
							stop_flag++;
						),
						Button Box( "Remove column",
							catl &amp;lt;&amp;lt; RemoveSelected;
							TPM &amp;lt;&amp;lt; RemoveSelected;
							varl &amp;lt;&amp;lt; Remove selected;
						),
						ex &amp;lt;&amp;lt; set script(show("hello"))
					)
				)
			)
		)
	))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jun 2020 21:57:00 GMT</pubDate>
    <dc:creator>Sburel</dc:creator>
    <dc:date>2020-06-28T21:57:00Z</dc:date>
    <item>
      <title>Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275833#M53526</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've built a simple UI to simplify using the response screening platform and subsequent operation for the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one column selection panel, I have list of all the continuous columns the user can select before moving forward. In some case, the user might want to perform an operation on the column (such as log transform) before selecting the resulting transient column.&lt;/P&gt;&lt;P&gt;In most platform, this option is enabled by default (right click on a column in the UI gives access to a bunch of menus/operations).&lt;/P&gt;&lt;P&gt;Is there a function or a way to enable that on a custom UI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:30:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275833#M53526</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2023-06-09T23:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275853#M53529</link>
      <description>&lt;P&gt;A Column Dialog() will provide you those options.&amp;nbsp; Here is the example from Column Dialog() taken from the scripting index&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dialog.PNG" style="width: 569px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24850i2A6F4DE58CAC61F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="dialog.PNG" alt="dialog.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT style="background-color: #ffffff;"&gt;Names Default To Here( 1 );&lt;BR /&gt;Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );&lt;BR /&gt;Column Dialog(&lt;BR /&gt;&amp;nbsp;ex y = ColList( "Y", Min Col( 1 ), Max Col( 2 ), Data Type( "Numeric" ) ),&lt;BR /&gt;&amp;nbsp;ex x = ColList( "X", Max Col( 1 ), Modeling Type( {"Continuous", "Multiple Response"} ) ),&lt;BR /&gt;&amp;nbsp;Line Up( 2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Text Box( "Alpha" ), ex = EditNumber( .05 ),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Text Box( "Beta" ), ey = EditText( "xyz" )&lt;BR /&gt;&amp;nbsp;),&lt;BR /&gt;&amp;nbsp;HList( cb = Check Box( "check", 1 ) ),&lt;BR /&gt;&amp;nbsp;HList( combo = Combo Box( "option1", "option2" ) ),&lt;BR /&gt;&amp;nbsp;HList( rb = RadioButtons( "a", "b" ) )&lt;BR /&gt;);&lt;/FONT&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 19:49:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275853#M53529</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-28T19:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275861#M53531</link>
      <description>Thanks a lot for the tip! I'll try to implement it&lt;BR /&gt;&lt;BR /&gt;Best</description>
      <pubDate>Sun, 28 Jun 2020 19:55:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275861#M53531</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2020-06-28T19:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275876#M53535</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I've tried Column Dialog and it certainly offers the option to manipulate columns. However, I was hoping to implement that option in the context of 'new window'.&lt;/P&gt;&lt;P&gt;In order to better guide the user through their options, I've split the columns into 3 panels. I only want to offer the option to transform columns in Panel 2. i&lt;/P&gt;&lt;P&gt;I don't think 'column dialog' would offer me the flexibility to split the columns in multiple selection panels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion to be able to invoke the same right click menu in the context of&amp;nbsp; 'new window' as for 'column dialog'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a simplified version of the script I've put together&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
Names Default To Here( 1 );
dy = Open( "$SAMPLE_DATA/Fitness.jmp" );;
ls = dy &amp;lt;&amp;lt; get name();
Show( ls );

Varls = dy &amp;lt;&amp;lt; get column names( continuous );
Show( Varls );


c = "Run";
col = dy &amp;lt;&amp;lt; get column names( string );
Show( col );
TPMls = {};
nc = N Items( col );
For( i = 1, i &amp;lt;= nc, i++,
	If( Contains( col[i], c ),
		Show( col[i] );
		Insert Into( TPMls, col[i] );
	)
);
Show( TPMls );

catls = {"Name","Sex"};
nc = N Col( dy );
lbWidth = 200;
pdwidth = 400;
stop_flag = 0;
Resplg = New Window( "FIND TRANSCRIPTS OF INTEREST",
	Empty(),
	Border Box( Left( 10 ), top( 2 ), Right( 10 ),
		V List Box(
			V List Box(
				Panel Box( "Purpose of analysis platform",
					Text Box(
						"Perform ....
",
						set wrap( 800 )
					)
				),
				Panel Box( "Panel 1",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						colListTPM = Col List Box(
							width( pdWidth ),
							&amp;lt;&amp;lt;append( TPMls ),
							nLines( Min( nc, 2 ) ),
							"numeric",
							&amp;lt;&amp;lt;set analysis type( "continuous" )
						),
						Button Box( "TPM",
							TPM &amp;lt;&amp;lt; Append( colListTPM &amp;lt;&amp;lt; GetSelected )
						),
						TPM = Col List Box(
							width( lbWidth ),
							nLines( 1 ),
							Minitems( 1 ),
							Maxitems( 1 ),
							"numeric"
						)
					)
				),
				Panel Box(
					"Panel 2",
					text box("Suggest ...", set wrap (800)),
					Lineup Box( N Col( 3 ), spacing( 5 ),
						V List Box(
							var = Col List Box(
								width( pdWidth ),
								&amp;lt;&amp;lt;append( varls ),
								nLines( Min( nc, 5 ) )
							)
						),
						Button Box( "Variable",
							Varl &amp;lt;&amp;lt; Append( var &amp;lt;&amp;lt; GetSelected ) 
						),
						Varl = Col List Box(
							width( lbWidth ),
							nLines( 1 ),
							Minitems( 1 ),
							Maxitems( 1 )
						)
					)
				),
				Panel Box(
					"Panel 3",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						cat = Col List Box(
							width( pdWidth ),
							&amp;lt;&amp;lt;append( catls ),
							nLines( Min( nc, 5 ) ),
							"character",
							&amp;lt;&amp;lt;set analysis type( "nominal" )
						),
						Button Box( "By", catl &amp;lt;&amp;lt; Append( cat &amp;lt;&amp;lt; GetSelected ) ),
						catl = Col List Box(
							width( lbWidth ),
							nLines( 2 ),
							Minitems( 1 ),
							Maxitems( 2 ),
							"character"
						)
					)
				),
				Panel Box( "Action",
					Lineup Box( N Col( 3 ), spacing( 5 ),
						ex = Button Box( "Go" ),
						Button Box( "Cancel",
							Resplg &amp;lt;&amp;lt; Close Window;
							stop_flag++;
						),
						Button Box( "Remove column",
							catl &amp;lt;&amp;lt; RemoveSelected;
							TPM &amp;lt;&amp;lt; RemoveSelected;
							varl &amp;lt;&amp;lt; Remove selected;
						),
						ex &amp;lt;&amp;lt; set script(show("hello"))
					)
				)
			)
		)
	))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 21:57:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275876#M53535</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2020-06-28T21:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275879#M53537</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/18041"&gt;@Sburel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe a FilterColSelector will work for you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Filter Col Selector Example", fontobj = lb = Filter Col Selector( width( 250 ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jun 2020 22:27:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275879#M53537</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-06-28T22:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enable column operations in custom UI (JSL)</title>
      <link>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275881#M53539</link>
      <description>&lt;P&gt;Exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 23:00:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enable-column-operations-in-custom-UI-JSL/m-p/275881#M53539</guid>
      <dc:creator>Sburel</dc:creator>
      <dc:date>2020-06-28T23:00:34Z</dc:date>
    </item>
  </channel>
</rss>

