<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering a field dependent on DB and another fiel</title><link>https://www.infopathdev.com:443/forums/thread/12390.aspx</link><pubDate>Mon, 19 Mar 2007 08:21:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12390</guid><dc:creator>Martin Boeck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12390</wfw:commentRss><description>Dear nukkumatti!&lt;br /&gt;&lt;br /&gt;thanks for your help! By the time I've found out that way to add this filter however the problem was that I had to make the form browser-enabled-only so filters weren't allowed. &lt;br /&gt;&lt;br /&gt;I've solved my problem according to an article on this link:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2006/10/12/cascading-dropdowns-in-browser-forms.aspx&gt;http://blogs.msdn.com/infopath/archive/2006/10/12/cascading-dropdowns-in-browser-forms.aspx&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;where I wrote a webservice which I pass the filter as a parameter and connect this to my form.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Martin</description></item><item><title>Re: Filtering a field dependent on DB and another fiel</title><link>https://www.infopathdev.com:443/forums/thread/12389.aspx</link><pubDate>Fri, 16 Mar 2007 12:10:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12389</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12389</wfw:commentRss><description>Forget about my first post there should be an easier way to do this.&lt;br /&gt;&lt;br /&gt;Just use a similar statement  as you already wrote in your fist post e.g. : SELECT tires,cars from CarsDatabase FROM IdontKnowYourTableName :)&lt;br /&gt;&lt;br /&gt;Now bind both ddls to the repeating node of your data connection and set the value and display name of your first to cars and the other to the tires.&lt;br /&gt;&lt;br /&gt;Double click your 2nd ddl and click the select xPath button next to entries. click on add filter. from the first dropdownlist select cars from your dataconnection, from the second "is equal to" and for the third use current()/my:nameofyourfirstddl as a function.&lt;br /&gt;&lt;br /&gt;Sorry that i can't answer more detailed but i have to catch my plain now as i am going to ireland to have a few pints for st. patricks day.&lt;br /&gt;&lt;br /&gt;cheers&lt;br /&gt;&lt;br /&gt;may be someone can jump in here ?.</description></item><item><title>Re: Filtering a field dependent on DB and another fiel</title><link>https://www.infopathdev.com:443/forums/thread/12388.aspx</link><pubDate>Fri, 16 Mar 2007 11:26:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12388</guid><dc:creator>Martin Boeck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12388</wfw:commentRss><description>Hi nukkumatti!&lt;br /&gt;&lt;br /&gt;Thanks for you quick reply! I had to install the VSTA in order to add a OnAfterChange event, now this works. However how do I bind my tires to cars? Where do I get my "valueSelectedInYourFirstDDl" from? Is this just like a variable and I have to name it exactly as the value-name of my first ddl? &lt;br /&gt;&lt;br /&gt;Visual Studio doesn't know ADOAdapter2, which assembly do I have to add? I'm actually working in c#.&lt;br /&gt;&lt;br /&gt;Best Regards and thanks a lot!&lt;br /&gt;Martin</description></item><item><title>Re: Filtering a field dependent on DB and another fiel</title><link>https://www.infopathdev.com:443/forums/thread/12387.aspx</link><pubDate>Fri, 16 Mar 2007 10:44:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12387</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12387</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;cannot you do actually the with infopath ?&lt;br /&gt;&lt;br /&gt;In your first ddl containing your cars (coming from your fist data connection) set the display name as your cars and the value as your carID.&lt;br /&gt;Set up a second data connection and in the last step of the wizard uncheck the "retrieve data automatically" checkbox.&lt;br /&gt;Bind your second ddl (tires) to this data connection.&lt;br /&gt;Then in an OnAfterChange event of your ddl containing your cars&lt;br /&gt;call something like this and populate your second ddl with the corresponding tires&lt;br /&gt;&lt;pre&gt;string sqlCommand = "SELECT tires from CarsDatabase WHERE ([carID]=valueSelectedInYourFirstDDl))";&lt;br /&gt;				//Get SQL dataconnection adapter&lt;br /&gt;				ADOAdapter2 dbConnection = (ADOAdapter2)thisXDocument.DataAdapters["CarsDatabase"];&lt;br /&gt;				//Assign new sql query to the connection adapter&lt;br /&gt;				dbConnection.Command = sqlCommand;&lt;br /&gt;				//Query the dataconnection&lt;br /&gt;				dbConnection.Query();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;could this work for you ?</description></item><item><title>Filtering a field dependent on DB and another fiel</title><link>https://www.infopathdev.com:443/forums/thread/12165.aspx</link><pubDate>Fri, 16 Mar 2007 10:31:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12165</guid><dc:creator>Martin Boeck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12165</wfw:commentRss><description>Hi all!&lt;br /&gt;&lt;br /&gt;I hope somebody can help me, I am a little helpless at the moment.&lt;br /&gt;I have the following problem:&lt;br /&gt;&lt;br /&gt;I have two dropdownlists in my InfoPath form:&lt;br /&gt;&lt;br /&gt;Cars and Tires package both of them are populated via&lt;br /&gt;database. The tires are dependant on the car (if you have a Porsche you can only have type B-tires and Ferrari A-tires,...) so when you select "ferrari" only the "tires" of Type A should be visible in the other dropdownlist. The tires are stored in a MS SQL 2005 table and so the Cars.&lt;br /&gt;&lt;br /&gt;How can I implement this via InfoPath? In ASP .NET you can make a statement like SELECT tires,cars from CarsDatabase WHERE ([carID]=@carID) however this doesn't work for Infopath:&lt;br /&gt;&lt;br /&gt;@carID: scalar variable must be declared&lt;br /&gt;&lt;br /&gt;I hope somebody can help me.&lt;br /&gt;&lt;br /&gt;Thks&lt;br /&gt;a lot&lt;br /&gt;Best Regards&lt;br /&gt;Martin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>