<?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: Look up values in the form's data source</title><link>https://www.infopathdev.com:443/forums/thread/18068.aspx</link><pubDate>Mon, 04 Apr 2005 09:16:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18068</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18068</wfw:commentRss><description>Hello timcoffman,&lt;br /&gt;   I tried creating the same schema that you mentioned above and set the dropdown as you mentioned. The solution worked for me in preview. I had a repeating table for Items block and as i inserted new items, these new values were seen in the dropdown control.&lt;br /&gt;&lt;br /&gt;Is there anything that I'm missing? The xpath for the selectable item is "/my:myFields/my:items/my:item" in the solution that I just created&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: Look up values in the form's data source</title><link>https://www.infopathdev.com:443/forums/thread/18067.aspx</link><pubDate>Fri, 01 Apr 2005 21:17:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18067</guid><dc:creator>timcoffman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18067</wfw:commentRss><description>As far as I can tell, the problem is that I am using a data element as the source for a combo box which is bound to an element which is _contained_in_ the hierarchy of the source element.&lt;br /&gt;&lt;br /&gt;e.g.:&lt;br /&gt;schema:&lt;br /&gt;&amp;lt;items&amp;gt;&lt;br /&gt;   &amp;lt;item&amp;gt;&lt;br /&gt;      &amp;lt;name/&amp;gt;&lt;br /&gt;      &amp;lt;item-id/&amp;gt;&lt;br /&gt;      &amp;lt;references&amp;gt;&lt;br /&gt;         &amp;lt;reference-id/&amp;gt;&lt;br /&gt;         &amp;lt;reference-id/&amp;gt;&lt;br /&gt;      &amp;lt;/references&amp;gt;&lt;br /&gt;   &amp;lt;/item&amp;gt;&lt;br /&gt;&amp;lt;/items&amp;gt;&lt;br /&gt;&lt;br /&gt;combobox bound to &amp;lt;reference-id&amp;gt;&lt;br /&gt;combobox data source specified as &amp;lt;item&amp;gt;&lt;br /&gt;    using display: &amp;lt;name&amp;gt;&lt;br /&gt;    using value: &amp;lt;item-id&amp;gt;&lt;br /&gt;xpath for selectable &amp;lt;item&amp;gt;s should be: "/items/item"&lt;br /&gt;actual xpath determined by InfoPath: "../../item"&lt;br /&gt;</description></item><item><title>Re: Look up values in the form's data source</title><link>https://www.infopathdev.com:443/forums/thread/18066.aspx</link><pubDate>Tue, 29 Mar 2005 22:52:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18066</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18066</wfw:commentRss><description>I believe that you cannot have a filter ([]) directly after a self (.) or parent (..) reference.&lt;br /&gt;&lt;br /&gt;You might try updating the XPath to something like the following:&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:if test="not(../..node()[@my:UniqueID=$val] or $val='')"&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Look up values in the form's data source</title><link>https://www.infopathdev.com:443/forums/thread/18065.aspx</link><pubDate>Sun, 27 Mar 2005 23:50:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18065</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18065</wfw:commentRss><description>Can you give us the xml file that is being used in the solution and which field you are trying to bind to the dropdown?&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Look up values in the form's data source</title><link>https://www.infopathdev.com:443/forums/thread/17977.aspx</link><pubDate>Thu, 17 Mar 2005 16:07:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17977</guid><dc:creator>timcoffman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=17977</wfw:commentRss><description>I am trying to use the "Look up values in the form's data source" feature of a Drop-Down List, but I always get the following error:&lt;br /&gt;&lt;br /&gt;    InfoPath cannot create a new, blank form.&lt;br /&gt;    The form template is not valid.&lt;br /&gt;&lt;br /&gt;    InfoPath cannot open the following view: View 1&lt;br /&gt;    The following view file is not valid: view1.xsl&lt;br /&gt;    The .xsl file is not valid XSL.&lt;br /&gt;    Expected token ')' found '['.&lt;br /&gt;&lt;br /&gt;    not(../..--&amp;gt;[&amp;lt;--@my:UniqueID=$val] or $val='')&lt;br /&gt;&lt;br /&gt;The referenced XSL is:&lt;br /&gt;    &amp;lt;xsl:variable name="val" select="."/&amp;gt;&lt;br /&gt;    &amp;lt;xsl:if test="not(../..[@my:UniqueID=$val] or $val='')"&amp;gt;&lt;br /&gt;</description></item></channel></rss>