<?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: Seconday datasource based on field</title><link>https://www.infopathdev.com:443/forums/thread/11420.aspx</link><pubDate>Wed, 11 Apr 2007 16:33:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11420</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11420</wfw:commentRss><description>Looks good. Glad you got it working!</description></item><item><title>Re: Seconday datasource based on field</title><link>https://www.infopathdev.com:443/forums/thread/11419.aspx</link><pubDate>Mon, 09 Apr 2007 15:02:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11419</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11419</wfw:commentRss><description>Ok i've figured this out.. here's how i've done this in infopath 2007.&lt;br /&gt;&lt;br /&gt;if ( e.NewValue != "" )&lt;br /&gt;            {&lt;br /&gt;                DataConnection objADOAdapter;&lt;br /&gt;                AdoQueryConnection connection;&lt;br /&gt;&lt;br /&gt;                objADOAdapter = this.DataSources["NavigationGroups"].QueryConnection;&lt;br /&gt;                connection = ( (AdoQueryConnection)( objADOAdapter ) );&lt;br /&gt;&lt;br /&gt;                // Retrieve the field in the InfoPath form whose value will be used in the  WHERE clause&lt;br /&gt;                XPathNavigator node = this.CreateNavigator().SelectSingleNode( "/my:myFields/my:group10/my:cbIdentifyAssetFilterTypes",this.NamespaceManager );&lt;br /&gt;&lt;br /&gt;                if(connection.Command.Contains("inner join"))&lt;br /&gt;                {&lt;br /&gt;//i want to remove the inner join text if there is already an inner //join so that i can append the new join condition.&lt;br /&gt;                    int index = connection.Command.IndexOf( "inner" );&lt;br /&gt;                    connection.Command = connection.Command.Remove(index );&lt;br /&gt;                }&lt;br /&gt;                // Generate the new SQL statement with the INNER JOIN and WHERE clause&lt;br /&gt;                string strSQL = connection.Command + " inner join linker_parent_to_child_nav l on l.childid = NavigationGroups.id where parentid = '" + node.InnerXml + "'";&lt;br /&gt;&lt;br /&gt;                connection.Command = strSQL;&lt;br /&gt;&lt;br /&gt;                this.DataConnections["NavigationGroups"].Execute( );&lt;br /&gt;&lt;br /&gt;            }</description></item><item><title>Re: Seconday datasource based on field</title><link>https://www.infopathdev.com:443/forums/thread/11418.aspx</link><pubDate>Mon, 09 Apr 2007 13:14:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11418</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11418</wfw:commentRss><description>Hi Greg,&lt;br /&gt;Thanks for the reply. This is a good step however I just can't figure out how to inject a value from my info path form into the query. Can you provide steps to do this in info path 2007? &lt;br /&gt;Thanks,&lt;br /&gt;Erin</description></item><item><title>Re: Seconday datasource based on field</title><link>https://www.infopathdev.com:443/forums/thread/11417.aspx</link><pubDate>Thu, 05 Apr 2007 21:24:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11417</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11417</wfw:commentRss><description>Use a query data source rule on the text box.</description></item><item><title>Seconday datasource based on field</title><link>https://www.infopathdev.com:443/forums/thread/6172.aspx</link><pubDate>Thu, 05 Apr 2007 20:51:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6172</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6172</wfw:commentRss><description>Hello Everyone,&lt;br /&gt;New to Infopath and using infopath 2007. I would like to know how to do the following:&lt;br /&gt;I have a drop down box that lists a bunch of things.  I have a field in the datasource and when the field has a value in it i want to filter the contents of the drop down box from the value in the textbox. The contents of the drop down box come from the database via a seconday datasource and it is filled when the form is opened. So when the text changes on the field i want to re-query the drop down box so that the contents of the drop down are based on this field... does anyone know how to do this???&lt;br /&gt;Thanks,</description></item></channel></rss>