<?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 Adding a search field to custom launch window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/598247#M80187</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steveylin_0-1675810729695.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49911i48400B4D64E76A40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steveylin_0-1675810729695.png" alt="steveylin_0-1675810729695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steveylin_1-1675810766315.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49912i3BEF2A0F68334732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steveylin_1-1675810766315.png" alt="steveylin_1-1675810766315.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have code here to create a custom launch window, as seen in the first image.&amp;nbsp; Is there a way to add a filter similar to what we normally see when we select analyze from menu?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clearCols = Expr( // Expression to clear all current settings
    selTests &amp;lt;&amp;lt; Remove All;
);

recallCols = Expr(
    ::testsRecall = selTests &amp;lt;&amp;lt; Get Items;
);

dt = Current Data Table();

/* Custom Launch Window */
selTestsWindow = New Window( "Test Selection for dashboard", // GUI to select test to analyze
    &amp;lt;&amp;lt;Modal, 
    &amp;lt;&amp;lt;return result, 
    Border Box( Left( 3 ), top( 2 ), 
        V List Box(
            H List Box(
                V List Box(
                    Panel Box( "Select Columns", 
                        colListData =
                        Col List Box( all, &amp;lt;&amp;lt;set data type( "Numeric" ) )
                    ), 
                ), 
                V List Box(
                    Panel Box( "Tests", 
                        Lineup Box( N Col( 2 ), Spacing( 3 ), 
                            Button Box( "Y, Response",
                                selTests &amp;lt;&amp;lt;
                                Append( colListData &amp;lt;&amp;lt; Get Selected )
                            ), 
                            selTests =
                            Col List Box( MinItems( 1 ), "Numeric" ), 
                        )
                    ), 
                ), 
                Panel Box( "Action", 
                    Lineup Box( N Col( 1 ), 
                        okButton = Button Box( "OK",
                            recallCols;
                            test_list = selTests &amp;lt;&amp;lt; Get Items;
                        ), 
                        Button Box( "Cancel" ), 
                        Text Box( " " ), 
                        Button Box( "Remove", 
                            selTests &amp;lt;&amp;lt; Remove Selected;
                        ), 
                        Button Box( "Recall", 
                            clearCols;

/* Restore any previous settings from the global variables */
                            Try(
                                selTests &amp;lt;&amp;lt; Append( ::testsRecall );
                            );
                        ), 
                        Button Box( "Reset", clearCols ), 
                    )
                )
            )
        )
    )
);

clearCols = Expr( // Expression to clear all current settings
    selTests &amp;lt;&amp;lt; Remove All;
);

recallCols = Expr(
    ::testsRecall = selTests &amp;lt;&amp;lt; Get Items;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;JMP 16.1 MacOS&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:38:06 GMT</pubDate>
    <dc:creator>steveylin</dc:creator>
    <dc:date>2023-06-08T16:38:06Z</dc:date>
    <item>
      <title>Adding a search field to custom launch window</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/598247#M80187</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steveylin_0-1675810729695.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49911i48400B4D64E76A40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steveylin_0-1675810729695.png" alt="steveylin_0-1675810729695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steveylin_1-1675810766315.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49912i3BEF2A0F68334732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steveylin_1-1675810766315.png" alt="steveylin_1-1675810766315.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have code here to create a custom launch window, as seen in the first image.&amp;nbsp; Is there a way to add a filter similar to what we normally see when we select analyze from menu?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;clearCols = Expr( // Expression to clear all current settings
    selTests &amp;lt;&amp;lt; Remove All;
);

recallCols = Expr(
    ::testsRecall = selTests &amp;lt;&amp;lt; Get Items;
);

dt = Current Data Table();

/* Custom Launch Window */
selTestsWindow = New Window( "Test Selection for dashboard", // GUI to select test to analyze
    &amp;lt;&amp;lt;Modal, 
    &amp;lt;&amp;lt;return result, 
    Border Box( Left( 3 ), top( 2 ), 
        V List Box(
            H List Box(
                V List Box(
                    Panel Box( "Select Columns", 
                        colListData =
                        Col List Box( all, &amp;lt;&amp;lt;set data type( "Numeric" ) )
                    ), 
                ), 
                V List Box(
                    Panel Box( "Tests", 
                        Lineup Box( N Col( 2 ), Spacing( 3 ), 
                            Button Box( "Y, Response",
                                selTests &amp;lt;&amp;lt;
                                Append( colListData &amp;lt;&amp;lt; Get Selected )
                            ), 
                            selTests =
                            Col List Box( MinItems( 1 ), "Numeric" ), 
                        )
                    ), 
                ), 
                Panel Box( "Action", 
                    Lineup Box( N Col( 1 ), 
                        okButton = Button Box( "OK",
                            recallCols;
                            test_list = selTests &amp;lt;&amp;lt; Get Items;
                        ), 
                        Button Box( "Cancel" ), 
                        Text Box( " " ), 
                        Button Box( "Remove", 
                            selTests &amp;lt;&amp;lt; Remove Selected;
                        ), 
                        Button Box( "Recall", 
                            clearCols;

/* Restore any previous settings from the global variables */
                            Try(
                                selTests &amp;lt;&amp;lt; Append( ::testsRecall );
                            );
                        ), 
                        Button Box( "Reset", clearCols ), 
                    )
                )
            )
        )
    )
);

clearCols = Expr( // Expression to clear all current settings
    selTests &amp;lt;&amp;lt; Remove All;
);

recallCols = Expr(
    ::testsRecall = selTests &amp;lt;&amp;lt; Get Items;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;JMP 16.1 MacOS&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:38:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/598247#M80187</guid>
      <dc:creator>steveylin</dc:creator>
      <dc:date>2023-06-08T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a search field to custom launch window</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/598248#M80188</link>
      <description>&lt;P&gt;The box with the Find / Search functionality is the Filter Col Selector.&amp;nbsp; Because it is a composite box it can be a little more challenging to script - you will find discussions on the Community that may help for common use cases, such as &lt;A href="https://community.jmp.com/t5/Discussions/How-to-access-Filter-Col-Selector-settings/m-p/473347" target="_self"&gt;this one&lt;/A&gt; that describes how you can show the filter field by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 23:46:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/598248#M80188</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-02-07T23:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a search field to custom launch window</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/602235#M80573</link>
      <description>&lt;P&gt;Thanks Dan.&amp;nbsp; I got this code to work:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel Box( "Select Columns",
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colListData = Filter Col Selector(dt),
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colListData[IfBox(1)] &amp;lt;&amp;lt; Set(1),
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//colListData = Col List Box(all,&amp;lt;&amp;lt;set data type("Numeric"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:10:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-search-field-to-custom-launch-window/m-p/602235#M80573</guid>
      <dc:creator>steveylin</dc:creator>
      <dc:date>2023-02-17T19:10:47Z</dc:date>
    </item>
  </channel>
</rss>

