<?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: Create Query</title><link>https://www.infopathdev.com:443/forums/thread/11458.aspx</link><pubDate>Thu, 12 Apr 2007 17:44:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11458</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11458</wfw:commentRss><description>XDocument.Query() is used when your main DOM is connected to a datasource like SQL or Access.&lt;br /&gt;&lt;br /&gt;You have a data connection called "matters". You need to query that data connection.</description></item><item><title>Create Query</title><link>https://www.infopathdev.com:443/forums/thread/6188.aspx</link><pubDate>Thu, 12 Apr 2007 15:50:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6188</guid><dc:creator>Wallen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6188</wfw:commentRss><description>I have a InfoPath form that I need to create a connection to a SQL database and return some values. I can create with using the Data Connection wizard, but that returns too many records. What I want to do is to pass a parameter. Here is my current code.&lt;br /&gt;&lt;br /&gt;function RetreiveMatters::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;var objADOAdapter;&lt;br /&gt;objADOAdapter = XDocument.DataObjects("matters").QueryAdapter ;&lt;br /&gt;XDocument.objADOAdapter.Command = "exec _get_Lookup_values @table = 'matter', @filter = 'c.client_code = ''012307'"; &lt;br /&gt;&lt;br /&gt;//Query the Data Source. &lt;br /&gt;XDocument.Query();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;What Am I doing Wrong?&lt;br /&gt;TIA&lt;br /&gt;&lt;br /&gt;O&lt;br /&gt;...If God didn't want us to eat animals, why did he make them out of meat???!!!</description></item></channel></rss>