<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32817.aspx</link><pubDate>Sun, 05 Oct 2008 13:34:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32817</guid><dc:creator>chrobi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32817</wfw:commentRss><description>&lt;p&gt;No problem :-) Here it is ... I have already translated it into my native Czech language, but I think that for understanding purpouse it doesn&amp;#39;t matter. Maybe the solution which I used is not very clean, bud as I said, it works :-)&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32812.aspx</link><pubDate>Sun, 05 Oct 2008 00:57:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32812</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32812</wfw:commentRss><description>Please do -- you can attach it under the Options tab when you reply to this post -- I&amp;#39;d like to look at it!</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32803.aspx</link><pubDate>Sat, 04 Oct 2008 08:53:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32803</guid><dc:creator>chrobi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32803</wfw:commentRss><description>&lt;p&gt;Thanks a lot for your answers. I don&amp;#39;t know why,&amp;nbsp;but it still doesn&amp;#39;t work in my project. Nevertheless after my hopeless trying how to fix it, I found out, that I don&amp;#39;t even need current() function to achieve good result. Instead of a problem-formula in my filter I putted simple Operation_type value from my primary data source and believe or not, It works :-)&lt;/p&gt;
&lt;p&gt;If you want, I can upload my form somewhere, to allow you to check why your advice didn&amp;#39;t work for me. It could be helpfull for another people having troubles with similar case.&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32790.aspx</link><pubDate>Fri, 03 Oct 2008 21:40:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32790</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32790</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;I mocked up a sample using the data structure described above and an XML file for a secondary data connection based off your XML. Here is the formula that worked for me:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;XMLFile1&amp;quot;)/Technology/Operation/Operation_type/Attribute_2/@value[../../@value =current()/../../my:Operation_type]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When I added the XML file, each of the &amp;#39;Attribute&amp;#39; elements had a &amp;#39;value&amp;#39; attribute, and you can see the name of my secondary data connection is &amp;quot;XMLFile1&amp;quot;. Using &lt;strong&gt;current()/../../my:Operation_type&lt;/strong&gt; populated the text box with the filtered data....&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32787.aspx</link><pubDate>Fri, 03 Oct 2008 20:00:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32787</guid><dc:creator>chrobi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32787</wfw:commentRss><description>&lt;p&gt;First condition&amp;gt; In a &lt;em&gt;Select a&amp;nbsp;field or group&amp;nbsp;&lt;/em&gt;dialog&amp;nbsp;I&amp;#39;m choosing &amp;quot;Technology &amp;gt; Operation &amp;gt; Value&amp;quot; in a secondary data source, I hope that&amp;#39;s what you wanted to know :-)&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;I don&amp;#39;t have checked the &lt;em&gt;Edit Xpath&lt;/em&gt; checkbox, it displays underlined &amp;quot;current()/Operation_type&amp;quot;, if it is checked, it displays &amp;quot;current()/my:Operation_type&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32785.aspx</link><pubDate>Fri, 03 Oct 2008 19:01:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32785</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32785</wfw:commentRss><description>&lt;p&gt;Okay, and what is the condition in the first part of your filter? &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;my condition &amp;gt; is equal to &amp;gt; use a formula &amp;gt; current()/my:Operation_type ... &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;from your initial post -- if you select &lt;strong&gt;Edit XPath&lt;/strong&gt; in the &lt;strong&gt;Insert Formula&lt;/strong&gt; dialog, what does the XPath look like?&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32782.aspx</link><pubDate>Fri, 03 Oct 2008 18:37:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32782</guid><dc:creator>chrobi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32782</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s my XML source:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Technology&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;Operation value=&amp;quot;Kalení&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Operation_type value=&amp;quot;Do Oleje&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_1 value=&amp;quot;Teplota Austenitizace:&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_2 value=&amp;quot;Doba Austenitizace:&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_3 value=&amp;quot;Přípravek&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Operation_type&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Operation_type value=&amp;quot;Do Vody&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_1 value=&amp;quot;Nějaká úplně jiná hodnota&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_2 value=&amp;quot;Doba Austenitizace&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_3 value=&amp;quot;Neco&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_4 value=&amp;quot;Přípravek&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Operation_type&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/Operation&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;Operation value=&amp;quot;Cementování&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Operation_type value=&amp;quot;V Prášku&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_1 value=&amp;quot;Druh prášku&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_2 value=&amp;quot;Výdrž&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_3 value=&amp;quot;Teplota&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Operation&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Operation_type value=&amp;quot;Monocarb&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_1 value=&amp;quot;teplota monokarbu&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_2 value=&amp;quot;kterej monokarb&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Attribute_3 value=&amp;quot;Přípravek&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Druh_operace&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/Operation&amp;gt;&lt;br /&gt;&amp;lt;/Technology&amp;gt; &lt;/p&gt;
&lt;p&gt;and here&amp;#39;s my Main data source structure:&lt;/p&gt;
&lt;p&gt;&amp;quot;MyFields&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Operation_Group&amp;quot; (Repeating group) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Operation&amp;quot; (field)&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Operation_type&amp;quot; (field) &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Attribute_1-value&amp;quot; (the field, which makes the problem) &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32780.aspx</link><pubDate>Fri, 03 Oct 2008 18:14:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32780</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32780</wfw:commentRss><description>&lt;p&gt;Hi -- what does your data source look like? The error you are getting means that the XPath in your formula is incorrect. If I know what your data source looks like, I may be able to help you. You can just type out your structure, for example:&lt;/p&gt;
&lt;p&gt;my:myFields&lt;br /&gt;&amp;nbsp; my:repeatingGroup&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my:fieldOne&lt;br /&gt;&amp;nbsp; my:Operation_type&lt;/p&gt;</description></item><item><title>Problem with current() function when trying to load xml data into a textbox</title><link>https://www.infopathdev.com:443/forums/thread/32779.aspx</link><pubDate>Fri, 03 Oct 2008 17:36:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32779</guid><dc:creator>chrobi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=32779</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on the form, which is based on this article &lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Hierarchical-Data-Source.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Hierarchical-Data-Source.aspx&lt;/a&gt;&amp;nbsp;. I&amp;#39;ve succesfully done some modifications, which I need, but when I&amp;#39;m trying to get a value from a xml datasource to a textbox, i&amp;#39;m getting this error message &amp;quot;&amp;quot;my:Operation_type&amp;quot; does not point to a valid location path of a field or group.&amp;quot;&lt;/p&gt;
&lt;p&gt;The specific steps I do are: Create a textbox &amp;gt; Properities &amp;gt; Value &amp;gt; Formula &amp;gt; Insert Field or Group &amp;gt; on the top&amp;nbsp;I select my secondary source and find the value I need &amp;gt; Filter data &amp;gt; Add &amp;gt; Select a field or group &amp;gt; now I find the value, which is important for my condition &amp;gt; is equal to &amp;gt; use a formula &amp;gt; current()/my:Operation_type ... and there appears higher mentioned error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could anyone give me and advice, how to solve this problem? Thank you very much for an answers.&lt;/p&gt;</description></item></channel></rss>