<?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: Setting up a pre-selection of categories and variables for Dashboard users in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/420911#M66965</link>
    <description>&lt;P&gt;You could use rb &amp;lt;&amp;lt; Get or rb &amp;lt;&amp;lt; Get Selected.&amp;nbsp; Here is how I found that in the scripting index (available under the help menu):&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="ih_0-1632485827952.png" style="width: 998px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36061i94B092D8AF5DF319/image-dimensions/998x393?v=v2" width="998" height="393" role="button" title="ih_0-1632485827952.png" alt="ih_0-1632485827952.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to closing the window, a web search for 'jmp new window get user input' took me to the link below which has an example to get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Re: How do I display a text box asking for input from the user." uid="38217" url="https://community.jmp.com/t5/Discussions/How-do-I-display-a-text-box-asking-for-input-from-the-user/m-p/38217#U38217" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 12:20:50 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2021-09-24T12:20:50Z</dc:date>
    <item>
      <title>Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/419429#M66840</link>
      <description>&lt;P&gt;I need my dashboard to be fully flexible and allow users to pre-select:&lt;/P&gt;&lt;P&gt;&amp;nbsp;a- The reference category from the variable "Group"&lt;/P&gt;&lt;P&gt;&amp;nbsp;b - The variables on which to run the dashboard on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, the dashboard to use these such the code knows that:&lt;/P&gt;&lt;P&gt;Ref = "name of reference group selected"&lt;BR /&gt;cols = { list of columns selected}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to have a dialogue window populate with the categories of a variable and the names of the columns, that users then pick from, click OK and then the dashboard runs as normal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:57:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/419429#M66840</guid>
      <dc:creator>EB101</dc:creator>
      <dc:date>2023-06-09T19:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/419607#M66859</link>
      <description>&lt;P&gt;Have a look at the column dialog or filter col selector functions to let the user pick a column (the following examples are 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 );
Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
Column Dialog(
	ex y = ColList( "Y", Min Col( 1 ), Max Col( 2 ), Data Type( "Numeric" ) ),
	ex x = ColList( "X", Max Col( 1 ), Modeling Type( {"Continuous", "Multiple Response"} ) ),
	Line Up( 2, Text Box( "Alpha" ), ex = EditNumber( .05 ), Text Box( "Beta" ), ey = EditText( "xyz" ) ),
	HList( cb = Check Box( "check", 1 ) ),
	HList( combo = Combo Box( "option1", "option2" ) ),
	HList( rb = RadioButtons( "a", "b" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Col List Box Example", fontobj = lb = Filter Col Selector( width( 250 ) ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A radio box might help select levels of a column:&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( "Example", rb = Radio Box( associative array( dt:sex &amp;lt;&amp;lt; get values ) &amp;lt;&amp;lt; get keys ) );&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:14:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/419607#M66859</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-09-21T13:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/420900#M66962</link>
      <description>&lt;P&gt;That is great, i've managed to set it up for my data, but two things I'm not too sure about now.&lt;/P&gt;&lt;P&gt;- is &lt;STRONG&gt;rb&lt;/STRONG&gt; the selected item? can I then use it in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;oneway1 = dt &amp;lt;&amp;lt; Oneway( Y( cols[1] ), X( :Group ), With Control( 1, {"rb"} ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- Can I set a button to say ACCEPT and then it closes the window?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 11:53:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/420900#M66962</guid>
      <dc:creator>EB101</dc:creator>
      <dc:date>2021-09-24T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/420911#M66965</link>
      <description>&lt;P&gt;You could use rb &amp;lt;&amp;lt; Get or rb &amp;lt;&amp;lt; Get Selected.&amp;nbsp; Here is how I found that in the scripting index (available under the help menu):&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="ih_0-1632485827952.png" style="width: 998px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36061i94B092D8AF5DF319/image-dimensions/998x393?v=v2" width="998" height="393" role="button" title="ih_0-1632485827952.png" alt="ih_0-1632485827952.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to closing the window, a web search for 'jmp new window get user input' took me to the link below which has an example to get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Re: How do I display a text box asking for input from the user." uid="38217" url="https://community.jmp.com/t5/Discussions/How-do-I-display-a-text-box-asking-for-input-from-the-user/m-p/38217#U38217" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 12:20:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/420911#M66965</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-09-24T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/421957#M67087</link>
      <description>&lt;P&gt;Thank you for the pointers. It is all looking very promising, I have two final questions on this, I did a search on the community and in the scripting guide, but I couldn't see answers so apologise for the basicness.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Is there a way for users to select multiple options from the radio box?&lt;/P&gt;&lt;P&gt;- My list of columns is very long, and it would be helpful to have the list over 3 columns - is it possible to format the radiobox to display the options over multiple columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 09:52:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/421957#M67087</guid>
      <dc:creator>EB101</dc:creator>
      <dc:date>2021-09-29T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a pre-selection of categories and variables for Dashboard users</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/422200#M67130</link>
      <description>&lt;P&gt;You could use a check box instead which does allow multiple selections. As to showing that in multiple columns I don't know of an out-of-box method but you could subset the larger list and display a third of the list in separate check boxes, and then have your script look through the results of each.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option, if you want the user to select a column from a list of columns, check out the Column Dialog object. That might give you a quick way to create your whole launch window.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:41:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-a-pre-selection-of-categories-and-variables-for/m-p/422200#M67130</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-09-29T18:41:37Z</dc:date>
    </item>
  </channel>
</rss>

