<?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: Reset Text Edit Box to empty when rest button is pressed in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686422#M87222</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks. A related question. How to disable my Reset button until an entry is made in the text edit box (and enable it only after the first character entry in the text edit box)?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 09:38:45 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-10-12T09:38:45Z</dc:date>
    <item>
      <title>Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685847#M87183</link>
      <description>&lt;P&gt;I would like to reset the Text Edit Box to empty using the reset button in the script below. How to do 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 );
clear log ();
nw = New Window( "Get Data",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	pid = Text Edit Box( "", &amp;lt;&amp;lt;Set Width( 160 ) ),
	Button Box ("Get ID &amp;amp; Data",
	ID = pid &amp;lt;&amp;lt; get text;
	show (ID)),
	//getData (ID); run getData script. Get data script will go here.
	Button Box("Reset", /* Reset script to reset text edit box to empty*/),
	Button Box("Cancel", dialog("Cancelled by User"));
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 14:44:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685847#M87183</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-11T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685893#M87185</link>
      <description>&lt;P&gt;You can do this with the &amp;lt;&amp;lt;Set Text() message.&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 );
clear log ();
nw = New Window( "Get Data",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	pid = Text Edit Box( "", &amp;lt;&amp;lt;Set Width( 160 ) ),
	Button Box ("Get ID &amp;amp; Data",
	ID = pid &amp;lt;&amp;lt; get text;
	show (ID)),
	//getData (ID); run getData script. Get data script will go here.
	Button Box("Reset", pid &amp;lt;&amp;lt; Set Text( "" ) ),
	Button Box("Cancel", dialog("Cancelled by User"));
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:14:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685893#M87185</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-11T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685947#M87188</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47878"&gt;@mmarchandTSI&lt;/a&gt;&amp;nbsp;That is simple. Thanks. While, we are here, How would one reset a List Box if it was populated with a list of items?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:44:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685947#M87188</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-11T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685948#M87189</link>
      <description>&lt;P&gt;As in clear the selection in the list box or clear the items leaving none to select?&amp;nbsp; If you'd like to know what messages any certain display box can take, try&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show Properties( diplayboxname )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:48:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685948#M87189</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-11T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685949#M87190</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47878"&gt;@mmarchandTSI&lt;/a&gt;&amp;nbsp; needs to be clear the items leaving none to select.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Sorry should have been more specific in my last post)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685949#M87190</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-11T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685955#M87191</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lb &amp;lt;&amp;lt; Remove All;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(My List Box is named lb)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show Properties( lb )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very helpful in situations like this.&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="mmarchandTSI_0-1697040174325.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57467i0F6983546F00F23A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandTSI_0-1697040174325.png" alt="mmarchandTSI_0-1697040174325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:04:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685955#M87191</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-11T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685956#M87192</link>
      <description>&lt;P&gt;&amp;lt;&amp;lt; Remove All () does empty the list.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:06:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/685956#M87192</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-11T16:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686153#M87208</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Example",
	lb =
	List Box(
		{"First Item", "Second Item", "Third Item"},
		max selected( 2 ),
	)
);
lb &amp;lt;&amp;lt; Set Selected( 2 );
lb &amp;lt;&amp;lt; Set Selected( 3 );

selected items = (lb &amp;lt;&amp;lt; Get Selected Indices);
for each({index},selected items, lb&amp;lt;&amp;lt;  set selected (index, 0) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 20:27:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686153#M87208</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-11T20:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686360#M87216</link>
      <description>&lt;P&gt;Remove All&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1697088647843.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57532i9894A169889F12A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1697088647843.png" alt="jthi_0-1697088647843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clear Selection&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1697088660832.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57533i7FC4317CF500DFA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1697088660832.png" alt="jthi_1-1697088660832.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this case (definitely not always the case) both are documented in scripting index with working examples (remove all example is quite clunky as it doesn't use wait to let user see what it does). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Easiest way (in my opinion) to find these is to search for ListBox and then from "Item name matches" try different List Box options AND check from left side until you get the correct object (in this case it is ListBoxBox, you might have to do this by trial and error and experience of using scripting index).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1697088761600.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57534iB520982D24A6FB36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1697088761600.png" alt="jthi_2-1697088761600.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After you have the correct object clicked, CLEAR your search text and press enter. You end up with the messages related to that object&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1697088810887.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57535iC33313B69A803C24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1697088810887.png" alt="jthi_3-1697088810887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does take some time to learn, how to use, scripting index in different ways of searching for information (it is worth it if you do JMP scripting).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 05:40:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686360#M87216</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-12T05:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686414#M87220</link>
      <description>&lt;LI-CODE lang="markup"&gt;Show Properties ()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;is one of the best piece of advice I have received here. Many thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:23:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686414#M87220</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-12T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686422#M87222</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks. A related question. How to disable my Reset button until an entry is made in the text edit box (and enable it only after the first character entry in the text edit box)?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:38:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686422#M87222</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-12T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686426#M87224</link>
      <description>&lt;P&gt;You can disable display boxes using &amp;lt;&amp;lt; Enable(0) and set it to 1 when it can be modified and then use &amp;lt;&amp;lt; Set Text Changed or &amp;lt;&amp;lt; Set function with text edit box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
win = New Window("Example", 
	teb = Text Edit Box("", &amp;lt;&amp;lt; Set Text Changed(function({this, value},
		btn &amp;lt;&amp;lt; Enable(!IsMissing(value));
	))),
	btn = Button Box("OK", &amp;lt;&amp;lt; Enable(0))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:43:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686426#M87224</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-12T09:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Text Edit Box to empty when rest button is pressed</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686436#M87226</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;It does take some time to learn, how to use, scripting index in different ways of searching for information (it is worth it if you do JMP scripting).&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for highlighting it.&lt;BR /&gt;I set up a quite similar rule some while ago:&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/JMP-Scripting-Index-feedback-and-discussion/m-p/583011/highlight/true#M78920" target="_blank"&gt;https://community.jmp.com/t5/Discussions/JMP-Scripting-Index-feedback-and-discussion/m-p/583011/highlight/true#M78920&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;but seems that I don't stick to it.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;clear selection&lt;/STRONG&gt; - nice :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 12:02:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-Text-Edit-Box-to-empty-when-rest-button-is-pressed/m-p/686436#M87226</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-12T12:02:49Z</dc:date>
    </item>
  </channel>
</rss>

