<?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: Radio Box to Text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222756#M44443</link>
    <description>&lt;P&gt;Ah, that was one problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also had to use "get selected" instead of "get text".&amp;nbsp; Also had to move "get selected" outside of the new window parenthesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works now.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 19:52:13 GMT</pubDate>
    <dc:creator>smithwoosley</dc:creator>
    <dc:date>2019-08-22T19:52:13Z</dc:date>
    <item>
      <title>Radio Box to Text</title>
      <link>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222717#M44440</link>
      <description>&lt;P&gt;How can I turn a selection from a radio box into text?&amp;nbsp; Trying below with no luck.&amp;nbsp; Or is there some other simpler solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window( "Radio Box",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;ReturnResult,
	Panel Box( "Select",
		rbox = Radio Box( {"A-CMP-1", "A-CMP-2"} ),
		toolcode = rbox&amp;lt;&amp;lt;get text;
	),
);

DSNString= "Driver={SQL Server}; SERVER=rb; DATABASE=FAB; UID=fab; ";

sqlStr=

"
select vcLotCode, vcToolCode
from EDB.dbo.tFABDATA
where vcLotCode like 'Lot.1234'
and vcToolCode like '"|toolcode|"'
	
";

dt = Eval(Substitute(Expr(dt=Open Database(DataSource,sqlcode,"Lots");),Expr(sqlcode),sqlstr,Expr(DataSource),DSNString));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222717#M44440</guid>
      <dc:creator>smithwoosley</dc:creator>
      <dc:date>2019-08-22T19:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Box to Text</title>
      <link>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222727#M44441</link>
      <description>&lt;P&gt;I believe your issue is your concatenation operators.&amp;nbsp; In JSL a concatenation operator is&amp;nbsp; ||, not | as in your example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;toolcode="zippy";

sqlStr=

"
select vcLotCode, vcToolCode
from EDB.dbo.tFABDATA
where vcLotCode like 'Lot.1234'
and vcToolCode like '"||toolcode||"'
	
";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:43:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222727#M44441</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-22T19:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Box to Text</title>
      <link>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222756#M44443</link>
      <description>&lt;P&gt;Ah, that was one problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also had to use "get selected" instead of "get text".&amp;nbsp; Also had to move "get selected" outside of the new window parenthesis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works now.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:52:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222756#M44443</guid>
      <dc:creator>smithwoosley</dc:creator>
      <dc:date>2019-08-22T19:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Box to Text</title>
      <link>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222866#M44466</link>
      <description>&lt;P&gt;You don't have to do as much manipulation for the call to the database.&amp;nbsp; Also &lt;STRONG&gt;evalinsert&lt;/STRONG&gt; makes the sql a little cleaner.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win = New Window( "Radio Box",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;ReturnResult,
	Panel Box( "Select",
		rbox = Radio Box( {"A-CMP-1", "A-CMP-2"} ),
		toolcode = rbox &amp;lt;&amp;lt; get selected;
	),
);

DSNString= "Driver={SQL Server}; SERVER=rb; DATABASE=FAB; UID=fab; ";

sqlStr = evalinsert(
"select vcLotCode, vcToolCode
   from EDB.dbo.tFABDATA
  where vcLotCode like 'Lot.1234'
    and vcToolCode like '^toolcode^'");

dt = open database(dsnstring, sqlstr, "Lots");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:28:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Radio-Box-to-Text/m-p/222866#M44466</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-08-23T17:28:01Z</dc:date>
    </item>
  </channel>
</rss>

