<?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: How to set a Column list box to required. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677557#M86387</link>
    <description>&lt;P&gt;Yeah, that worked. Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another doubt, how can we check whether ColListBox is empty? Can we use "IsEmpty" ? Could you help me with this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Error = expr(New Window("JMP ALERT" , &amp;lt;&amp;lt;Modal, Textbox("Please select the required fields."),ButtonBox("OK")));
If(Isempty(colListX) == 1,
Error
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Sep 2023 21:38:48 GMT</pubDate>
    <dc:creator>Vinusha</dc:creator>
    <dc:date>2023-09-13T21:38:48Z</dc:date>
    <item>
      <title>How to set a Column list box to required.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677503#M86383</link>
      <description>&lt;P&gt;My application should allow the users to select the required columns to proceed with further evaluation of the data. And I want to set the column list box status to required. But it is still displaying optional in the modal. How to set them to required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button box("X Column", colListX&amp;lt;&amp;lt;Append(colListData&amp;lt;&amp;lt;GetSelected)),
colListX = ColListBox(&amp;lt;&amp;lt;set required(1),nLines(1)),
Button box("Y Column", colListY&amp;lt;&amp;lt;Append(colListData&amp;lt;&amp;lt;GetSelected) ),
colListY = Col List Box(&amp;lt;&amp;lt;set required(1),nLines(1)),
Button box("BY Column", colListBy&amp;lt;&amp;lt;Append(colListData&amp;lt;&amp;lt;GetSelected)),
colListBy = Col List Box(nLines(1))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I even wanted to display an error msg when the required fields are not selected. Can "Isempty" function used to check whether column list box is empty or not.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Error = expr(New Window("JMP ALERT" , &amp;lt;&amp;lt;Modal, Textbox("Please select the required fields."),ButtonBox("OK")));
If(Isempty(colListX) == 1,
Error
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2023 19:33:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677503#M86383</guid>
      <dc:creator>Vinusha</dc:creator>
      <dc:date>2023-09-13T19:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Column list box to required.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677554#M86386</link>
      <description>&lt;P&gt;You need to use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&amp;lt; set Min Items()&lt;/P&gt;
&lt;P&gt;to set how many items are required for a given list&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1694640543405.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56638i17FD7B9B3BAEC2FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1694640543405.png" alt="txnelson_0-1694640543405.png" /&gt;&lt;/span&gt;&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( "Col List Box Example",
	Col List Box( all, width( 250 ), maxSelected( 1 ) ),
	fontobj = lb = Col List Box()
);
lb &amp;lt;&amp;lt; set Min Items(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use the Scripting Index to find what messages can be passed to the Platforms, along with examples&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 21:30:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677554#M86386</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-13T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Column list box to required.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677557#M86387</link>
      <description>&lt;P&gt;Yeah, that worked. Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another doubt, how can we check whether ColListBox is empty? Can we use "IsEmpty" ? Could you help me with this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Error = expr(New Window("JMP ALERT" , &amp;lt;&amp;lt;Modal, Textbox("Please select the required fields."),ButtonBox("OK")));
If(Isempty(colListX) == 1,
Error
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2023 21:38:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677557#M86387</guid>
      <dc:creator>Vinusha</dc:creator>
      <dc:date>2023-09-13T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Column list box to required.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677560#M86388</link>
      <description>&lt;P&gt;I typically check to see how many items are found after using the messsage&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt; Get Items()&lt;/P&gt;
&lt;P&gt;Here is an example from the Scripting Index that I did a slight modification to, to find the number of items returned from the Get Items message&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( "Col List Box Example",
	Col List Box( all, width( 250 ), maxSelected( 1 ) ),
	fontobj = lb = Col List Box()
);
lb &amp;lt;&amp;lt; Append( "height" );
nitems(lb &amp;lt;&amp;lt; Get Items());&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2023 21:52:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677560#M86388</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-09-13T21:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Column list box to required.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677565#M86389</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yeah, that worked. Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 22:04:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-Column-list-box-to-required/m-p/677565#M86389</guid>
      <dc:creator>Vinusha</dc:creator>
      <dc:date>2023-09-13T22:04:42Z</dc:date>
    </item>
  </channel>
</rss>

