<?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: Using buttons to populate a Drop-Down ListBox</title><link>https://www.infopathdev.com:443/forums/thread/52369.aspx</link><pubDate>Wed, 03 Mar 2010 05:24:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52369</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=52369</wfw:commentRss><description>&lt;p&gt;hello joemanc,&lt;/p&gt;
&lt;p&gt;good you got it working, the only thing i would suggest is to fetch data automatically unless your data keeps changing, because fetching the data at every button click will result in more database hits. &lt;/p&gt;</description></item><item><title>Re: Using buttons to populate a Drop-Down ListBox</title><link>https://www.infopathdev.com:443/forums/thread/52333.aspx</link><pubDate>Tue, 02 Mar 2010 14:38:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52333</guid><dc:creator>Joemanc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=52333</wfw:commentRss><description>&lt;p&gt;I got it to work.&lt;/p&gt;
&lt;p&gt;Just to recap what I did: &lt;/p&gt;
&lt;p&gt;I added a textbox field. On each button, I set in&amp;nbsp;a Rule 2 things: 1 is to set the value of my textbox field to the letter value of the button that was clicked. And 2, I query my data connection that returns clients(When creating the Data Connection, make sure the &amp;#39;Automatically retrieve data...&amp;#39; option is not checked).&lt;/p&gt;
&lt;p&gt;On the Listbox, for the filter, I am filtering where the clientname begins with fieldname(where fieldname is the letter value set in the rule).&lt;/p&gt;
&lt;p&gt;Works great. Thanks!!&lt;/p&gt;</description></item><item><title>Re: Using buttons to populate a Drop-Down ListBox</title><link>https://www.infopathdev.com:443/forums/thread/52319.aspx</link><pubDate>Tue, 02 Mar 2010 05:38:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52319</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=52319</wfw:commentRss><description>&lt;p&gt;you will have to bind the list to some repeating control (or the data retrieved from your data connection). while binding the data make sure you are filtering the data based on the value of the button_field&lt;/p&gt;
&lt;p&gt;then on button click set value to some field say button_field to the caption of the button. i.e. if the user clicks button name A, the value of the button_field should be A. &lt;/p&gt;</description></item><item><title>Using buttons to populate a Drop-Down ListBox</title><link>https://www.infopathdev.com:443/forums/thread/52306.aspx</link><pubDate>Mon, 01 Mar 2010 21:32:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52306</guid><dc:creator>Joemanc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=52306</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to use buttons to populate a ListBox with specific values.&amp;nbsp;I have:&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Buttons&amp;nbsp;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;A&amp;nbsp; B&amp;nbsp; C&amp;nbsp; D&amp;nbsp; E&amp;nbsp; F&amp;nbsp; G&amp;nbsp; H&amp;nbsp; I&lt;/p&gt;
&lt;p&gt;X Y&amp;nbsp;Z&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;ListBox with Clients&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;Acme, Corp&lt;/p&gt;
&lt;p&gt;ABC, Corp.&lt;/p&gt;
&lt;p&gt;What I would like to be able to do is for the user to click on one of the letter buttons, and the listbox would populate with a list of clients whose last names begin with the letter on the button. I was looking at doing this via code, but with the amount of data I have, the&amp;nbsp;listbox&amp;nbsp;takes too long to load.&amp;nbsp;Now I&amp;#39;m hoping to be able to do&amp;nbsp;without any code, but I have not been able to figure out&amp;nbsp;the correct&amp;nbsp;way just yet.&amp;nbsp;Do I need a separate Data Connection for each letter? ex: v_AllClientsA, v_AllClientsB.&amp;nbsp;Or just 1 Data Connection that returns all clients and I can&amp;nbsp;create some type of filter? Thanks!&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>