<?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 Is it possible to update Text Box based on Combo Box Selection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38133#M22316</link>
    <description>&lt;P&gt;Hello!&amp;nbsp; I am new to JSL and trying to develop a tool for an engineering group.&amp;nbsp; What we'd like to do is to pull data from a table and display the results of one record based on a selection of items available.&amp;nbsp; I have developed a super simple version and cannot get it to work.&amp;nbsp; Is it even possible to update a Text Box in a window based on a selection made in a Combo Box.&amp;nbsp; &amp;lt;&amp;lt; Reshow is not doing what I had hoped it would.&amp;nbsp; If this isn't possible, are there any other options?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I'm trying to learn from:&lt;/P&gt;&lt;PRE&gt;update = expr(cb &amp;lt;&amp;lt; Get Selected;
	tb2 &amp;lt;&amp;lt; reshow); //refresh code

TestArray = {"This", "That", "The Other"}; //my list of 'stuff'

nw = New Window("Sample", &amp;lt;&amp;lt; Modal,
	vlb = V List Box(
		cb = Combo Box(TestArray //my list of 'stuff' in a combo box
		),
		hlb = H List Box (
			tb1 = Text Box (" You selected: "),  //label
				tb2 = Text Box (cb &amp;lt;&amp;lt; Get Selected;), //return the current item
				update; //call to refresh the text box (but it doesn't)
			//I have named all display boxes in hopes that &amp;lt;&amp;lt;reshow of one of them 
			//would be the ticket.  Nothing worked the way I wanted.
		)
	)&lt;BR /&gt;)&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Apr 2017 20:36:09 GMT</pubDate>
    <dc:creator>WendyLou315</dc:creator>
    <dc:date>2017-04-13T20:36:09Z</dc:date>
    <item>
      <title>Is it possible to update Text Box based on Combo Box Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38133#M22316</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I am new to JSL and trying to develop a tool for an engineering group.&amp;nbsp; What we'd like to do is to pull data from a table and display the results of one record based on a selection of items available.&amp;nbsp; I have developed a super simple version and cannot get it to work.&amp;nbsp; Is it even possible to update a Text Box in a window based on a selection made in a Combo Box.&amp;nbsp; &amp;lt;&amp;lt; Reshow is not doing what I had hoped it would.&amp;nbsp; If this isn't possible, are there any other options?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I'm trying to learn from:&lt;/P&gt;&lt;PRE&gt;update = expr(cb &amp;lt;&amp;lt; Get Selected;
	tb2 &amp;lt;&amp;lt; reshow); //refresh code

TestArray = {"This", "That", "The Other"}; //my list of 'stuff'

nw = New Window("Sample", &amp;lt;&amp;lt; Modal,
	vlb = V List Box(
		cb = Combo Box(TestArray //my list of 'stuff' in a combo box
		),
		hlb = H List Box (
			tb1 = Text Box (" You selected: "),  //label
				tb2 = Text Box (cb &amp;lt;&amp;lt; Get Selected;), //return the current item
				update; //call to refresh the text box (but it doesn't)
			//I have named all display boxes in hopes that &amp;lt;&amp;lt;reshow of one of them 
			//would be the ticket.  Nothing worked the way I wanted.
		)
	)&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Apr 2017 20:36:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38133#M22316</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2017-04-13T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update Text Box based on Combo Box Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38135#M22317</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TestArray = {"This", "That", "The Other"}; //my list of 'stuff'
string = "You Selected:  This";

nw = New Window( "Sample",
	&amp;lt;&amp;lt;Modal,
	vlb = V List Box(
		cb = Combo Box(
			TestArray,
			choice = cb &amp;lt;&amp;lt; Get Selected;
			show(string);
			string = "You Selected:  " || choice;
			tb1 &amp;lt;&amp;lt; Set Text( string );
		),
tb1 = Text Box(string)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 21:54:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38135#M22317</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-04-13T21:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update Text Box based on Combo Box Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38137#M22319</link>
      <description>&lt;P&gt;I will add to Mark's comments that you can see exellent examples for all of the elements available to Text Edit Boxes and all other display object in the Scripting Index. &amp;nbsp;It makes working with JSL object much easier&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;</description>
      <pubDate>Thu, 13 Apr 2017 22:28:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38137#M22319</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-13T22:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update Text Box based on Combo Box Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38220#M22378</link>
      <description>Thank you SO very much M_Anderson.  That worked beautifully.  Now to fit it to my exact needs.  I can't begin to express how thrilled I am.  I'm truly looking forward to learning more about JSL!</description>
      <pubDate>Mon, 17 Apr 2017 13:49:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38220#M22378</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2017-04-17T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update Text Box based on Combo Box Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38221#M22379</link>
      <description>Thanks, txnelson!  I will certainly do that and keep referring to the Scripting Index as I continue to learn JSL.</description>
      <pubDate>Mon, 17 Apr 2017 13:49:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-it-possible-to-update-Text-Box-based-on-Combo-Box-Selection/m-p/38221#M22379</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2017-04-17T13:49:58Z</dc:date>
    </item>
  </channel>
</rss>

