<?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: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9974.aspx</link><pubDate>Fri, 07 Jul 2006 19:58:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9974</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9974</wfw:commentRss><description>I think something is wrong with your XPath. You might want to check out the namespaces or do something to debug. Try running this modified code:&lt;br /&gt;&lt;br /&gt;function CTRL8_7::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;var oQueryId = XDocument.DOM.selectSingleNode ( "/dfs:myFields/dfs:queryFields/q:Customers/@CustomerID" );&lt;br /&gt;&lt;br /&gt;XDocument.UI.Alert( "oQueryId object = " + oQueryId + " -- Null: " + (oQueryId == null) );&lt;br /&gt;&lt;br /&gt;oQueryId.text=eventObj.Source.selectSingleNode("@CustomerID").text;&lt;br /&gt;XDocument.Query();&lt;br /&gt;XDocument.View.SwitchView("Detail");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This should give you a little more information to help debug.</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9973.aspx</link><pubDate>Fri, 07 Jul 2006 18:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9973</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9973</wfw:commentRss><description>Matt, I've tried your suggestion and now i get an error from my script: &lt;br /&gt;Object Required, file: script.js, line 37. &lt;br /&gt;My function is as follows:&lt;br /&gt;function CTRL8_7::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;var oQueryId = XDocument.DOM.selectSingleNode ( "/dfs:myFields/dfs:queryFields/q:Customers/@CustomerID" );&lt;br /&gt;oQueryId.text=eventObj.Source.selectSingleNode("@CustomerID").text;&lt;br /&gt;XDocument.Query();&lt;br /&gt;XDocument.View.SwitchView("Detail");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;my Main DOM tree looks like&lt;br /&gt;myFields&lt;br /&gt;  queryFields&lt;br /&gt;   q:Customers&lt;br /&gt;  dataFields&lt;br /&gt;   d:Customers&lt;br /&gt;  my:Customer&lt;br /&gt;The DDL is using the Master data connection with&lt;br /&gt;Entries =:/dfs:myFields/dfs:dataFields/d:Customers, &lt;br /&gt;value=@CustomerID and &lt;br /&gt;name=@ContactName&lt;br /&gt;&lt;br /&gt;Any suggestions on what I am doing wrong would be greatly appreciated.&lt;br /&gt;</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9972.aspx</link><pubDate>Wed, 28 Jun 2006 17:02:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9972</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9972</wfw:commentRss><description>You have to create a single node either in your Main DOM or a secondary DOM to store the value of the DDL. Then just populate from the repeating group.</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9971.aspx</link><pubDate>Wed, 28 Jun 2006 16:42:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9971</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9971</wfw:commentRss><description>When I do this, I get a message box stating " a drop down list box can not be bound to a group, repeating field, or a field with a picture....drop down must be inside a repeating table or repeating section that is bound to that group". what can i do to prevent this? I don't want to the drop down to repeat on the form.</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9970.aspx</link><pubDate>Wed, 28 Jun 2006 15:20:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9970</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9970</wfw:commentRss><description>In the Controls task pane, click drop-down box to place a new drop-down box on the view.  Double-click this new drop-down and for Entries browse to the Master table. Click Ok until you are back onto the view. Click Preview.</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9969.aspx</link><pubDate>Wed, 28 Jun 2006 14:39:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9969</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9969</wfw:commentRss><description>Matt, thanks. My real problem is how to use a Drop down instead of a repeating table to display the "Master" records. What is the trick? I can not figure out how to prevent the dropdown from repeating.&lt;br /&gt;TIA</description></item><item><title>Re: Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/9968.aspx</link><pubDate>Wed, 21 Jun 2006 23:12:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9968</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9968</wfw:commentRss><description>I think the easiest way to do this would be to make the value of the drop-down list the ID field.&lt;br /&gt;&lt;br /&gt;Double-click the drop-down list on the view and notice at the bottom there are two fields Display Name and Value. Set the display name to whatever you want the user to browse through and set the Value to be the ID that you will insert into the query.  If you do this you won't have to change the code at all.&lt;br /&gt;&lt;br /&gt;I hope this helps!</description></item><item><title>Modifying How To Article Using Query Filter</title><link>https://www.infopathdev.com:443/forums/thread/5677.aspx</link><pubDate>Wed, 21 Jun 2006 13:38:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5677</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5677</wfw:commentRss><description>I would like to implement the technique described by Matt Faus&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=0bb37b4de44348408680a53a449f2353&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=0bb37b4de44348408680a53a449f2353&lt;/a&gt; for passing the ID from a selected record as a parameter but instead of using a Repeating Table to display the master list, I would like to use a DropDown list but I can not figure out how to do this. Could someone tell me how to change the following so that I can get the Job Number from a dropdown?&lt;br /&gt;var oQueryId = XDocument.DOM.selectSingleNode ( "/dfs:myFields/dfs:queryFields/q:JobMaster/@Job_Number" ); oQueryId.text = eventObj.Source.selectSingleNode("@Job_Number").text;&lt;br /&gt;XDocument.Query();&lt;br /&gt;XDocument.View.SwitchView("Detail");</description></item></channel></rss>