<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Option Button problem with Web Service</title><link>https://www.infopathdev.com:443/forums/thread/20429.aspx</link><pubDate>Tue, 05 Jun 2007 20:08:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20429</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20429</wfw:commentRss><description>For two-value controls (a checkbox or two radio buttons) a bit works great. For storing values of more significance, the varchar should work fine. I&amp;#39;m not sure why it isn&amp;#39;t working for you. If the database stored varchar(10) with a value of &amp;quot;foo&amp;quot; and you are using a string on the InfoPath side, then you should be getting back exactly &amp;quot;foo&amp;quot; which should match your control.</description></item><item><title>Re: Option Button problem with Web Service</title><link>https://www.infopathdev.com:443/forums/thread/20405.aspx</link><pubDate>Tue, 05 Jun 2007 12:16:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20405</guid><dc:creator>MichaelBjerke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20405.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20405</wfw:commentRss><description>&lt;p&gt;Thanks for your reply.&amp;nbsp; I tried making the database field a char(1) to avoid getting stray characters, but that didn&amp;#39;t help.&amp;nbsp; I would think that varchar(n), where n is any integer, would just return the value in the database field, because that&amp;#39;s what the &amp;quot;v&amp;quot; is for.&amp;nbsp; To get by this problem I converted the database field to &amp;quot;bit&amp;quot; and now it works.&amp;nbsp; But that doesn&amp;#39;t solve the case of more than two radio buttons.&amp;nbsp; If each radio button can have a different value, and the values are of different lengths, what database type can you use other than varchar?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>Re: Option Button problem with Web Service</title><link>https://www.infopathdev.com:443/forums/thread/20231.aspx</link><pubDate>Tue, 29 May 2007 19:21:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20231</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20231</wfw:commentRss><description>&lt;p&gt;It sounds like you&amp;#39;ve already checked this, but the quickest way to see what value is being returned is to place a text box in the view in place of the option buttons.&lt;/p&gt;&lt;p&gt;But, what I&amp;#39;m guessing is that because you have varchar(2) in the database, that the WS is returning &amp;quot;Yx&amp;quot; where &amp;#39;x&amp;#39; is some other unseen character (like a space character or something). This would create a mismatch for your option buttons. Why are you not using varchar(1) in SQL if you are only going to have a Y or N. For that matter, why not use a bit type with 1/0?&lt;/p&gt;&lt;p&gt;Check (using code or conditional formatting) to verify that your WS returned value is really exactly &amp;quot;Y&amp;quot; and not some &amp;quot;Yx&amp;quot; as described above.&lt;/p&gt;</description></item><item><title>Option Button problem with Web Service</title><link>https://www.infopathdev.com:443/forums/thread/20225.aspx</link><pubDate>Tue, 29 May 2007 16:58:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20225</guid><dc:creator>MichaelBjerke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=20225</wfw:commentRss><description>&lt;p&gt;&lt;span class="spnMessageText" id="msg"&gt;I have a SQL Server database with a table that has a field, discussedOutside, which is of type varchar(2).&amp;nbsp;&amp;nbsp; I also have a web service that accesses that table, and in that service the class that defines the data to be returned to InfoPath has a field, discussedOutside, which has a type of string.&amp;nbsp; Finally, my InfoPath form has&amp;nbsp;a pair of Option Buttons bound to data source field called discussedOutside.&amp;nbsp; This data source was created automatically when I created the form via the design a Form/Using a Data Connection/Web Service wizard.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="spnMessageText"&gt;The problem is that when I hit the Run Query button, it populates all of the text boxes correctly from the database, but the option button for the discusedOutside field doesn&amp;#39;t get set.&amp;nbsp;&amp;nbsp;I have verified that the web service method corretly retrieves a Y from the database record, and I have set the &amp;quot;Value when selected&amp;quot; field for one of the option buttons to Y.&amp;nbsp; (The other one is set to N.)&amp;nbsp; Why doesn&amp;#39;t this option button get selected?&lt;br /&gt;&lt;br /&gt;Any ideas on where I&amp;#39;m going wrong?&amp;nbsp;&amp;nbsp;Many thanks.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>