<?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: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4175.aspx</link><pubDate>Wed, 07 Mar 2007 06:47:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4175</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4175</wfw:commentRss><description>Oh sorry, it's not a value its the name of your Drop Down List control from where you select your article, may be my:field1 ?</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4174.aspx</link><pubDate>Wed, 07 Mar 2007 06:47:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4174</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4174</wfw:commentRss><description>I Good Nights Rest did the job for me, I've modified the rule to:&lt;br /&gt;xdXDocument:GetDOM("LOCALSALES_ARTICLES")/dfs:myFields/dfs:dataFields/d:LOCALSALES_ARTICLES/@UnitPrice[../@ArticleID = current()]&lt;br /&gt;Now the texbox gets populated.&lt;br /&gt;&lt;br /&gt;Thanks a million, Jerome.&lt;br /&gt;Without your help I never would have found the solution.&lt;br /&gt;</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4173.aspx</link><pubDate>Tue, 06 Mar 2007 15:08:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4173</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4173</wfw:commentRss><description>Since this is the newbie section:&lt;br /&gt;Can you please tell me how i can find the value of "/my:yourDLL"?&lt;br /&gt;&lt;br /&gt;I haven't got a clue!&lt;br /&gt;</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4172.aspx</link><pubDate>Tue, 06 Mar 2007 13:12:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4172</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4172.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4172</wfw:commentRss><description>This should work for you, use this within a rule of your dropdown list and you can fill a textbox with your unit price&lt;br /&gt;&lt;br /&gt;xdXDocument:GetDOM("LocalSales_Articles")/dfs:myFields/dfs:dataFields/d:LocalSales_Articles/@Expr2[../@Expr1 = current()/../my:yourDDL]</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4171.aspx</link><pubDate>Tue, 06 Mar 2007 11:24:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4171</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4171</wfw:commentRss><description>No,&lt;br /&gt;It's a SQL datasource. In the meanwhile, i experimented with the 'HOW TO' of Greg Collins &lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&lt;/a&gt;)&lt;br /&gt;But once again, I cannot alter it so it works against a SQL table iso a XML datafile.&lt;br /&gt;&lt;br /&gt;Thanks again for your time!</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4170.aspx</link><pubDate>Tue, 06 Mar 2007 09:47:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4170</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4170.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4170</wfw:commentRss><description>Can you post your secondary data source? I guess it's an xml file right ?</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4169.aspx</link><pubDate>Tue, 06 Mar 2007 09:03:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4169</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4169.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4169</wfw:commentRss><description>xdXDocument:GetDOM("LOCALSALES_ARTICLES")/dfs:myFields/dfs:dataFields/d:LOCALSALES_ARTICLES/@Unitprice[@ArticleID = current()]/@UnitPrice&lt;br /&gt;&lt;br /&gt;Gives no result in expression box.&lt;br /&gt;I don't know if this is of any importance but the localsales_articles is a secondary data source to pick the correct article to order.&lt;br /&gt;</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4168.aspx</link><pubDate>Tue, 06 Mar 2007 08:54:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4168</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4168</wfw:commentRss><description>try [@ArticleID = current()]/@UnitPrice at the end</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4167.aspx</link><pubDate>Tue, 06 Mar 2007 08:49:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4167</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4167</wfw:commentRss><description>Thanks for your time.&lt;br /&gt;I've changed the Xpath formula to&lt;br /&gt;xdXDocument:GetDOM("LOCALSALES_ARTICLES")/dfs:myFields/dfs:dataFields/d:LOCALSALES_ARTICLES/@UnitPrice[@ArticleID = current()]&lt;br /&gt;&lt;br /&gt;But still the expressionbox isn't filled in.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/4166.aspx</link><pubDate>Tue, 06 Mar 2007 08:41:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4166</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4166</wfw:commentRss><description>HI Hans,&lt;br /&gt;&lt;br /&gt;I think you have to use the current() function.&lt;br /&gt;&lt;br /&gt;See below example, In my case I use a webservice to populate the values of a drop down list. When the user selects a name from this ddl the mail address is written into another text box. I use this statement within a rule of the ddl but your exbox should work as well.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;xdXDocument:GetDOM("Designer")/dfs:myFields/dfs:dataFields/tns:getDesignersResponse/tns:getDesignersResult/tns:Credentials[tns:Account = current()]/tns:Mail&lt;/pre&gt;&lt;br /&gt;Does this help ?</description></item><item><title>Populate expressionbox based on other control</title><link>https://www.infopathdev.com:443/forums/thread/1892.aspx</link><pubDate>Tue, 06 Mar 2007 08:30:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1892</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1892</wfw:commentRss><description>I' am trying to full in the article price based on a selected article name. I've added an expressionbox with the formula: &lt;br /&gt;xdXDocument:GetDOM("LOCALSALES_ARTICLES")/dfs:myFields/dfs:dataFields/d:LOCALSALES_ARTICLES/@UnitPrice[@ArticleID = 4] &lt;br /&gt;&lt;br /&gt;I came up to that solution by reading &lt;br /&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2004/09/13/228881.aspx&gt;http://blogs.msdn.com/infopath/archive/2004/09/13/228881.aspx&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;If I don't  fill in a criterium (leave out [@ArticleID = 4]), I get the first record, so I think my source is OK. &lt;br /&gt;&lt;br /&gt;Can anyone tell me what I am doing wrong?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kind Regards, &lt;br /&gt;Hans (struggling with my first infopath form) &lt;br /&gt;&lt;br /&gt;I am using infopath 2003&lt;br /&gt;</description></item></channel></rss>