<?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: Need help with getting input from a Text Edit Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46575#M26543</link>
    <description>&lt;P&gt;The "Lot_Num" variable that you are referencing, is not the value of the Text Edit Box(), but rater a pointer to the object.&amp;nbsp; Here is an example from&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Text Edit Box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example",
	fontobj = text = Text Box( "Example Text" )
);
Print( text &amp;lt;&amp;lt; Get Text() );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Oct 2017 13:21:12 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-10-31T13:21:12Z</dc:date>
    <item>
      <title>Need help with getting input from a Text Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46572#M26542</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help&amp;nbsp;with getting input from a "Text Edit Box". After the user inputs the &lt;SPAN&gt;Lot&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Number (Lot_Num variable), i wanna use it as a numaric/text value. when i try to print Lot_Num, i can see that the output is not the string the user put in the&amp;nbsp;"Text Edit Box". &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This value will need to be placed in a new row for existing data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "Enter Lot Number",
Text Box( "Enter Lot Num:" ),
Lot_Num = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),
Button Box( "Click To Save", User_Input &amp;lt;&amp;lt; close window ),
);
Print( Lot_Num );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:17:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46572#M26542</guid>
      <dc:creator>elad</dc:creator>
      <dc:date>2017-10-31T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting input from a Text Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46575#M26543</link>
      <description>&lt;P&gt;The "Lot_Num" variable that you are referencing, is not the value of the Text Edit Box(), but rater a pointer to the object.&amp;nbsp; Here is an example from&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Text Edit Box&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example",
	fontobj = text = Text Box( "Example Text" )
);
Print( text &amp;lt;&amp;lt; Get Text() );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:21:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46575#M26543</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-31T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting input from a Text Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46576#M26544</link>
      <description>&lt;P&gt;The lot_num variable points to the text edit box, not the text itself.&amp;nbsp; Here's some code that shows how to get the value, and also uses a modal window so that processing stops until you click OK.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;User_Input = New Window( "Enter Lot Number", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "Enter Lot Num:" ),
		Lot_Num_teb = Text Edit Box( "", &amp;lt;&amp;lt;set width( 200 ) ),
	),
	text box("Click OK to save"),
	Button Box( "OK", 
		lot_num = lot_num_teb &amp;lt;&amp;lt; get text();
	),
);
Print( Lot_Num );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:22:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46576#M26544</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-31T13:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting input from a Text Edit Box</title>
      <link>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46615#M26567</link>
      <description>&lt;P&gt;Did the trick. Thx...&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 06:06:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-help-with-getting-input-from-a-Text-Edit-Box/m-p/46615#M26567</guid>
      <dc:creator>elad</dc:creator>
      <dc:date>2017-11-01T06:06:08Z</dc:date>
    </item>
  </channel>
</rss>

