<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Cascading list boxes populating text boxes</title><link>https://www.infopathdev.com:443/forums/thread/65654.aspx</link><pubDate>Fri, 01 Apr 2011 03:54:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65654</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65654</wfw:commentRss><description>&lt;p&gt;Hi JefJar and welcome to the wonderful world of InfoPath!&lt;/p&gt;
&lt;p&gt;Thank you for the well-worded and articulate questions. Always a pleasure to read questions that make sense. Sounds like you have set up a significant camp at the base of InfoPath mountain. Here are some quick replies with thoughts.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;There are many problems with out-of-box SQL forms. For example, you can&amp;#39;t use this on the internet with SharePoint browser based forms due to impersonation limitations with double hops (user-&amp;gt;browser-&amp;gt;SQL). If you are using the rich client, this isn&amp;#39;t an issue (since it&amp;#39;s just (user-&amp;gt;SQL). Another issue is that you can&amp;#39;t do parameterized querying of data on load. The SQL query string doesn&amp;#39;t take fields from your form. To filter your EQ_Name based on your EQ_SerialNumber you just need to set a filter.&amp;nbsp;In your data source, double click on the field where you want to store EQ_SerialNumber and click the Fx to set the default value. Insert the field that you want to set and you should have the option to filter at that time.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Or, perhaps you are instead asking about how to query SQL based on the EQ_SerialNumber and not pull down all of the rowsets? To query only the SQL rowset corresponding to the serial number would require passing that serial number to the SQL query. You can&amp;#39;t do this with the out-of-box approach. We created our Database Accelerator Web Service (DBXL) way back in 2004 to address this limitation and many others, so one option is to download the free trial of that and redo your form to be an XML schema - it will allow for much greater flexibility in the type of data you can store and how you query and submit to your database. But, assuming you don&amp;#39;t want to install DBXL, the only option is to&amp;nbsp;have it download all of the rows and then just filter on the one that&amp;nbsp;matches the serial number. Note: this is only an&amp;nbsp;issue for new forms since&amp;nbsp;filled out forms should open with the correct EQ_Name, etc. (no need to query the complete DB for those). &lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;To only show the serial numbers that are remaining just add a bunch of conditions to your filter to show only the ones that haven&amp;#39;t appeared before. The xpath expression can be a little daunting but it should be doable. &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Hope this helps a wee bit.&lt;/p&gt;</description></item><item><title>Cascading list boxes populating text boxes</title><link>https://www.infopathdev.com:443/forums/thread/65648.aspx</link><pubDate>Thu, 31 Mar 2011 22:52:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65648</guid><dc:creator>jefjar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65648</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m a newbie to this site and infopath development alltogether.&amp;nbsp; I have been working on developing a customer equipment site audit form.&amp;nbsp; Currently I have a query that is run on customer account that populates mailing address, site contact names and equipment.&amp;nbsp; This information is coming from an SQL database where I set up the Customer info as the main data source and under that I have&amp;nbsp;the customer contacts and customer equipment&amp;nbsp;tables set up.&amp;nbsp; The customer equipment data is populated in a repeating table and returns EQ_Name, EQ_Type, EQ_SerialNumber, EQ_Warranty and EQ_Installed.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What I want to set up is a repeating section where I have 15 check items that has to be completed for each piece of equipment.&amp;nbsp; The first field I have set up is the Serial Number field which is a drop downlist.&amp;nbsp; Since this data was already populated by my query under the list box entries I selected the option lookup values in the forms data source.&amp;nbsp; Which I can see and it works just fine.&amp;nbsp; The two things I can&amp;#39;t figure out is how to set up the filter so the EQ_Name is autmatically prepopulated based on my serial number selection.&amp;nbsp; The second thing I can&amp;#39;t figure out is when I have more than 1 piece of equipment at a site, say 4, how can i get the second repeating table Serial Number drop down to only show the serial numbers that are remaining.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve spent a lot of time researching this and attempting many solutions but I haven&amp;#39;t gotten it to work yet.&amp;nbsp; It sounds like I have to utilize a secondary data source but my question would be why if I already have this data in the data source. &lt;/p&gt;</description></item></channel></rss>