<?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 specific columns with JSL name contains code in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69352#M35087</link>
    <description>&lt;P&gt;What version of JMP are you using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the script I sent, here is what happens:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the dialog appears with the filter box&lt;/LI&gt;&lt;LI&gt;type in &lt;STRONG&gt;a&lt;/STRONG&gt;, then select age, age is highlighted; select name then name is selected; hold the control key and select age and both are selected.&lt;/LI&gt;&lt;LI&gt;delete &lt;STRONG&gt;a&lt;/STRONG&gt; and type in &lt;STRONG&gt;ei&lt;/STRONG&gt; then weight and height are selected, similar behavior as above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Sorry it is not working for you.&amp;nbsp; The script I sent works on JMP 14.1 on the PC. It does not work in JMP 13.2.1, before I look for an alternative, which version of JMP are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anytime you ask a question you should always specify the version of JMP you are using.&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>Fri, 24 Aug 2018 07:25:42 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-08-24T07:25:42Z</dc:date>
    <item>
      <title>Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69165#M35016</link>
      <description>&lt;P&gt;The Name contains script:&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Filter Col Selector Example",
    fontobj = lb = Filter Col Selector( width( 250 ) )
);
lb &amp;lt;&amp;lt; Name contains( "a" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;delviers all colums, which contains a. What code must be added in order to mark one of these columns by clicking or double clikking the column from the list box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:34:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69165#M35016</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-22T13:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69255#M35039</link>
      <description>&lt;P&gt;Try this&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 ) )
);
lb &amp;lt;&amp;lt; Name contains( "a" );

//select name

_xx = lb &amp;lt;&amp;lt; get items;
_idx = Contains(_xx, "name");
lb &amp;lt;&amp;lt; set selected( _idx, 1);  //or 0 to unselect&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To see the available messages for an object select &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Main Menu &amp;gt; Scripting Index &amp;gt; Display Box &amp;gt; FilterColSelector&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:32:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69255#M35039</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-22T23:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69264#M35043</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;Unfortunately,&amp;nbsp;I did not get the results with the JSL update. Right now, I do not know why.&lt;/P&gt;&lt;P&gt;What I actually want is to get a similar behavior like for&amp;nbsp;Cols /&amp;nbsp;Columns Viewer ... / Name Contains … in JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, this is possible with the mentioned JSL code from the Scripting Index:&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 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Filter Col Selector Example",

       fontobj = lb = Filter Col Selector( width( 250 ) )

);

lb &amp;lt;&amp;lt; Name contains( );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However after the search string has been run, I I’d like to mark the desired / selected column in the data table, by double click. This part is still missing or not working within the JSL code from the Scripting Index.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 06:40:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69264#M35043</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-23T06:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69271#M35047</link>
      <description>&lt;P&gt;Not sure I have understood correctly, but is this what you are after?&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 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// Make a FilterBoxSelector
New Window( "Filter Col Selector Example", lb = Filter Col Selector( width( 250 ) ));

// Define and set an 'action' script
actionScript =
Expr(
	selected = lb &amp;lt;&amp;lt; getSelected;
	dt &amp;lt;&amp;lt; clearColumnSelection;
	dt &amp;lt;&amp;lt; selectColumns(selected);
);
lb &amp;lt;&amp;lt; setScript(actionScript);

// Try it out
lb &amp;lt;&amp;lt; Name contains("sex");
Wait(3);
lb &amp;lt;&amp;lt; Name contains("eight");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:17:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69271#M35047</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2018-08-23T08:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69284#M35051</link>
      <description>&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is somewhat of a related question. Since the blogger response&amp;nbsp; had lb&amp;lt;&amp;lt; Name Contains(), I assumed, the request is for the user to enter a filter field and all columns would be selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to expose the Filter field (Show Filter). I failed at multiple attempts to enable this second menu item via JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a method to enable the filter field and configure the filter? I can get the PopupBox Menu Count, and Menu Text, but not the selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 381px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12151i76694597E4608AE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:47:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69284#M35051</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-23T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69285#M35052</link>
      <description>&lt;P&gt;Thanks for your support Ian. It is not yet working as I want.&lt;/P&gt;&lt;P&gt;I' m looking for JSL code with which I can general search for specific columns by name ( part1) and then select the desired column in the list box from part1&amp;nbsp;by double clicking and mark the column in the data table.&lt;/P&gt;&lt;P&gt;The general search part1 is done with JSL code:&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 );
dt = Current Data Table();
New Window( "Column Search",
	fontobj = lb = Filter Col Selector( width( 250 ) )
);
lb &amp;lt;&amp;lt; Name contains(  );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The marking part2 could be done for the example like the code from the scripting index&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 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
dt &amp;lt;&amp;lt; Go to( :BP 12F );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;How must they combined in order to find, mark&amp;nbsp;and&amp;nbsp; go to the&amp;nbsp;columns in a data table?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:57:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69285#M35052</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-23T09:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69286#M35053</link>
      <description>&lt;P&gt;Figured it out:&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Filter Col Selector Example",
    fcb = Filter Col Selector( width( 250 ) )
);
ib = (fcb&amp;lt;&amp;lt;Parent) &amp;lt;&amp;lt; Xpath("//IfBox");
ib &amp;lt;&amp;lt; set(1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 10:02:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69286#M35053</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-23T10:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69291#M35055</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot.JPG" style="width: 371px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12152i3CF9CFE63A564188/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot.JPG" alt="Screenshot.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I missing something. I can't get to selected column in the data table.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:50:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69291#M35055</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-23T12:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69327#M35072</link>
      <description>&lt;P&gt;Try this&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


New Window( "Filter Col Selector Example",
    fcb = Filter Col Selector( width( 250 ))
);
ib = (fcb&amp;lt;&amp;lt;Parent) &amp;lt;&amp;lt; Xpath("//IfBox");
ib &amp;lt;&amp;lt; set(1);
lbb = (fcb&amp;lt;&amp;lt;Parent) &amp;lt;&amp;lt; Xpath("(//ListBoxBox)[1]");
lbb &amp;lt;&amp;lt; set Function(Function({this},
   selCol = this&amp;lt;&amp;lt;get selected;
   dt&amp;lt;&amp;lt;clear Column Selection;
   dt &amp;lt;&amp;lt;select Columns(selCol) ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 18:22:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69327#M35072</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-23T18:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69350#M35085</link>
      <description>&lt;P&gt;Thanks for your endurance. I really appreciate it. However the JSL is still not working as intended (see image).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to get the same function as one gets by using Cols /&amp;nbsp; Columns Viewer / Name&amp;nbsp; Contains. The results, which are being shown in the search box, can be clicked and as result, the specific column is selected in the origin data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;In case the proper JSL code is available, the whole column search / select process can be carried out much faster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot1.JPG" style="width: 589px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12156iDDC0C4F63FF7FE57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot1.JPG" alt="Screenshot1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:22:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69350#M35085</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-24T06:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69352#M35087</link>
      <description>&lt;P&gt;What version of JMP are you using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the script I sent, here is what happens:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the dialog appears with the filter box&lt;/LI&gt;&lt;LI&gt;type in &lt;STRONG&gt;a&lt;/STRONG&gt;, then select age, age is highlighted; select name then name is selected; hold the control key and select age and both are selected.&lt;/LI&gt;&lt;LI&gt;delete &lt;STRONG&gt;a&lt;/STRONG&gt; and type in &lt;STRONG&gt;ei&lt;/STRONG&gt; then weight and height are selected, similar behavior as above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Sorry it is not working for you.&amp;nbsp; The script I sent works on JMP 14.1 on the PC. It does not work in JMP 13.2.1, before I look for an alternative, which version of JMP are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anytime you ask a question you should always specify the version of JMP you are using.&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>Fri, 24 Aug 2018 07:25:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69352#M35087</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-24T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69365#M35088</link>
      <description>&lt;P&gt;This script works in JMP 12 and JMP 13. The reason the previous script does not work in earlier versions of JMP is that the data table messages &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;clear column selections&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;and &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;select columns(list)&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; are not available. In earlier versions, columns need to be selected and unselected one at a time, hence, the required changes below. I do not have access to any version earlier than JMP 12.&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


New Window( "Filter Col Selector Example",
    fcb = Filter Col Selector( width( 250 ))
);

ib = (fcb&amp;lt;&amp;lt;Parent) &amp;lt;&amp;lt; Xpath("//IfBox");
ib &amp;lt;&amp;lt; set(1);
lbb = (fcb&amp;lt;&amp;lt;Parent) &amp;lt;&amp;lt; Xpath("(//ListBoxBox)[1]");

lbb &amp;lt;&amp;lt; set Function(Function({this},{_xx, i},
   selCol = this&amp;lt;&amp;lt;get selected;
   _xx = dt &amp;lt;&amp;lt; get selected columns;
   For(i=1, i&amp;lt;=nitems(_xx), i++, _xx[i] &amp;lt;&amp;lt; set selected(0));
   For(i=1, i&amp;lt;=nitems(selCol), i++, column(dt,selCol[i] ) &amp;lt;&amp;lt; set selected(1));
  )	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:26:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69365#M35088</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-24T07:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69366#M35089</link>
      <description>&lt;P&gt;Sorry for that. I do have JMP 13.1&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 08:35:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69366#M35089</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-24T08:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69367#M35090</link>
      <description>&lt;P&gt;Great. Now the JSL is working with JMP 13.1 . I appreciate really your and Ian's endurance in geting the question solved.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 08:43:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69367#M35090</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-24T08:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69369#M35091</link>
      <description>&lt;P&gt;The JSL is now working with the satrting JSL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If the JSL is generalized (to use it in an Icon Toolbar) in JMP 13.1.0 like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I run into to the old problem =&amp;gt; No colums selection. Do you know whether this specific for JMP 13.10.0?&lt;/P&gt;&lt;P&gt;If yes, don't try to fix it. I hope that I will have JMP 14 soon.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 09:38:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69369#M35091</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-24T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69374#M35093</link>
      <description>&lt;P&gt;The last script I sent (modified for Current Data Table ) works for both JMP 12 and JMP 13. Here is a screen shot from JMP 12. As the screen shot depicts this is the JMP sample data table.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the script will not work if the current data table changes because &amp;lt;&amp;lt; Get Selected Columns, returns a list of column references, not the table name.&amp;nbsp; So :Chloroform will return an error if the current data table does not have that column.&amp;nbsp; So to make the script more robust, I changed line 18 below to the JSL below.&amp;nbsp; The script is attached.&amp;nbsp; It should even if the original table is no longer the current data table. However, if the script (Here) changes the value of dt while the dialog is still open, then a a name collision will occur and cause a problem. Or if the original table is closed when the dialog is still open, problems will occur.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;   For(i=1, i&amp;lt;=nitems(_xx), i++, column(dt, char(_xx[i])) &amp;lt;&amp;lt; set selected(0));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12157i22F479B346D3F5F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 10:17:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69374#M35093</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-24T10:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69542#M35109</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Again thanks for your support and patience.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The script is better, but as already mentioned, it is still possible to get no function. For example after the dialog has been closed (via Icon in the tool bar) and rum again for a second search and select run on the same data table. Maybe things will improve with JMP 14.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:36:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69542#M35109</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-24T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69606#M35121</link>
      <description>&lt;P&gt;I do not know what you mean by "&lt;SPAN&gt;after the dialog has been closed (via Icon in the tool bar)&amp;nbsp;&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which icon? Is thid a custom script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have a script that runs, but does not run in different conditions, most of the time it is a scoping problem.&amp;nbsp; For example the first script I gave you for JMP13 and 12 worked, however, if the current data table changed while the dialog was still open, the syntax :colname will not work. It was a weakness in my program. However, when I converted the :colname to a string "colname" using the char() function and referencing the source table it is robust.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So whatever you are doing via the icon or following script is creating a scoping problem and a JMP version will not fix the problem.&amp;nbsp; So since you have not shared what you are doing, I can only point to some things&amp;nbsp; to look for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The script must use names default to here, if you have other scripts that reference dt.&lt;/LI&gt;&lt;LI&gt;Make sure the original target table is the current table before you click on the script button again. (Menu bar displays the table list).&amp;nbsp; &amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think you might have a scoping problem, or a table locking problem. Good luck finding it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot, I added the script as an addin. I used this many times while doing other stuff, using it on different tables then using again and it works the same in both JMP 13 and JMP 12.&amp;nbsp; It is not a version issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 951px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12171i33002EC2A3777FE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 21:09:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69606#M35121</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-24T21:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69685#M35129</link>
      <description>&lt;P&gt;You are right. Your code is working. My mistake was the naming of the icon. I did not use a blank.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot2.JPG" style="width: 242px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12173i8304A087ECA3C467/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot2.JPG" alt="Screenshot2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After the icon name has been changed to "Column Search" it is working perfectly.&lt;/P&gt;&lt;P&gt;A last question to this topic would be what code must be added to script in order not only to select the found column, but also to go to the found column?&lt;/P&gt;&lt;P&gt;This would improve the whole process further in case the column is not in the visible part of the window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 17:48:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/69685#M35129</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-25T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific columns with JSL name contains code</title>
      <link>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/70012#M35140</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP 13.2.1 has&amp;nbsp; dt &amp;lt;&amp;lt; Go To (col ref) ;&amp;nbsp; I don't have 13.1. So, here is a test case. If this works teh modified script is attached. it added JSL to Bring Window to Front(), and Go To()&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);
 dt = open("$Sample_Data/Semiconductor Capability.jmp");
 //select a column towards the end of the table
:PM_L1 &amp;lt;&amp;lt; set selected(1);
wait(2);
dt &amp;lt;&amp;lt; go to(:PM_L1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 04:04:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/70012#M35140</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-27T04:04:40Z</dc:date>
    </item>
  </channel>
</rss>

