<?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 Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/50686.aspx</link><pubDate>Mon, 18 Jan 2010 06:06:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50686</guid><dc:creator>texastwo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50686.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50686</wfw:commentRss><description>&lt;p&gt;Jimmy, &lt;/p&gt;
&lt;p&gt;thanks for the post. I beleive this is what i&amp;#39;m looking for. Not to insult you&amp;nbsp;but can you explain the syntax or break the formula down a bit. I am trying to use it verbaium by changing the &amp;quot;jobid&amp;quot; to a valid lib that i have etc. I cant get the formula to verify?&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/50203.aspx</link><pubDate>Tue, 29 Dec 2009 16:58:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50203</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50203.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50203</wfw:commentRss><description>&lt;p&gt;Thanks for replying Jimmy. It helped me a lot.&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/50167.aspx</link><pubDate>Fri, 25 Dec 2009 02:26:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50167</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50167</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Just use the same idea as the one above, except instead of putting the formula in an expression box, put it in the &lt;b&gt;Default Value &lt;/b&gt;property of the fields you want to populate.&amp;nbsp; Remember to check &amp;quot;Update this field when the value of this formula changes&amp;quot; and you&amp;#39;re all set.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/50163.aspx</link><pubDate>Thu, 24 Dec 2009 18:01:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50163</guid><dc:creator>ricomarcelo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50163</wfw:commentRss><description>&lt;p&gt;Hi Everybody,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to InfoPath and I have a requirement very similar to what is being discussed here. However, my&amp;nbsp;requirement is to populate&amp;nbsp;3 textboxes instead of an expression box&amp;nbsp;based on what is selected in the drop-down list box. My drop-down list box is bound to a secondary table (ClassTable)&amp;nbsp;with the following fields:&lt;/p&gt;
&lt;p&gt;ClassID, ClassName,&amp;nbsp;CapLimit, NumYears and&amp;nbsp;Rate&lt;/p&gt;
&lt;p&gt;So I assigned&amp;nbsp;ClassID as the drop-down list box&amp;#39;s &amp;quot;Value&amp;quot; and ClassName as the &amp;quot;Display Name&amp;quot;.&amp;nbsp;Now what I need is to put the corresponding values for CapLimit, NumYears and Rate to their respective textboxes upon selecting an item on the drop-down list box.&lt;/p&gt;
&lt;p&gt;Is this even possible with InfoPath? Should I resort to coding in JScript? If not maybe in&amp;nbsp;C#? If so, can anybody show me how to accomplish this?&lt;/p&gt;
&lt;p&gt;Any help will be greatly appreciated. Thanks........ and Merry Christmas to Everyone!&lt;/p&gt;
&lt;p&gt;- Ric&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49880.aspx</link><pubDate>Fri, 11 Dec 2009 04:29:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49880</guid><dc:creator>All In The Mind</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49880</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Wow dude ! &lt;/strong&gt;You&amp;#39;re the man. Thanks.&lt;/p&gt;
&lt;p&gt;That sample you sent was exactly what&amp;nbsp;I was trying to accomplish. The error messages I was getting just weren&amp;#39;t helping me. Thanks, I really appreciate it - how long have you been working on this ?&lt;/p&gt;
&lt;p&gt;I think I&amp;#39;ll learn a lot from this site. Any pointers on learning InfoPath ?&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49879.aspx</link><pubDate>Fri, 11 Dec 2009 04:22:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49879</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49879</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m not really sure what you&amp;#39;re saying, but I assure you this is entirely possible and something that I do all the time.&amp;nbsp; Please see the attached XSN.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49877.aspx</link><pubDate>Fri, 11 Dec 2009 03:56:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49877</guid><dc:creator>All In The Mind</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49877</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Jimmy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;You should be able to use &lt;b&gt;current()/my:ID&lt;/b&gt; (or whatever the field is called) to reference the ID in the same row as the expression box.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Except that it&amp;#39;s in the context of the other data source instead of the repeating row so I get an error message when I try to use current. It&amp;#39;s as if I try to XPath into the secondary data source while in the context of a repeating table inside the main datasource, while at the the same time trying to use current()/my:ID (from the main datasource)&amp;nbsp;as node-test to target that element in the secondary data source...&lt;/p&gt;
&lt;p&gt;It was just a sample to try and learn infopath more so I&amp;#39;m going to change the repeating table to a regular table and skip the headache but again - Thanks.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to try to actually learn XPath.&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49876.aspx</link><pubDate>Fri, 11 Dec 2009 03:35:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49876</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49876</wfw:commentRss><description>You should be able to use &lt;b&gt;current()/my:ID&lt;/b&gt; (or whatever the field is called) to reference the ID in the same row as the expression box.&lt;br /&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49875.aspx</link><pubDate>Fri, 11 Dec 2009 03:09:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49875</guid><dc:creator>All In The Mind</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49875</wfw:commentRss><description>&lt;p&gt;In a repeating table, if I used an Expression field in the 2nd column, how would I reference the ID selected in the 1st column ?&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49874.aspx</link><pubDate>Fri, 11 Dec 2009 03:05:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49874</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49874</wfw:commentRss><description>It sounds like you should be using an &lt;b&gt;Expression Box&lt;/b&gt; to show the description instead of a &lt;b&gt;Text Box&lt;/b&gt;. This will save you from adding a field to your main data source to hold the value. Since your data is repeating, you&amp;#39;ll also need to use the current() function when setting up your expression, but it sounds like you may have figured that out already.&amp;nbsp; If you get stuck on that part, attach screenshots of your main and secondary data source, and I can show you how to construct the function.&lt;br /&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/49873.aspx</link><pubDate>Fri, 11 Dec 2009 02:49:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49873</guid><dc:creator>All In The Mind</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49873</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Thanks Jimmy.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been stuck on this for hours ! I have a repeating table with 3 columns like this:&lt;/p&gt;
&lt;p&gt;
&lt;table&gt;

&lt;tr&gt;
&lt;td&gt;Job ID&lt;/td&gt;
&lt;td&gt;Job Description&lt;/td&gt;
&lt;td&gt;Apply&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;00010002&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;00010002&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;a href="http://www.infopathdev.com/forums/AddPost.aspx?ReplyToPostID=42458&amp;amp;Quote=False#"&gt;Apply to more positions&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The jobs are stored in a secondary data source. The desired functionality is when the user selects a Job ID in the first column, the textarea in the second column shows the description of the job.&lt;/p&gt;
&lt;p&gt;Using Jimmy&amp;#39;s post, I was able to bind an expression field to the Job Description by way of adding an extra field to the main data source, etc.... etc.... &lt;strong&gt;but I know there has to be an easier way than my implementation&lt;/strong&gt;. How to tie the description box to the description field of the element selected by the ID field of that row ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This isn&amp;#39;t to hijack the thread but any advice on how this works will be greatly appreciated !&lt;/p&gt;
&lt;p&gt;The secondary data source looks like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;lt;Positions&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;lt;Position JobId=&amp;quot;0001&amp;quot; JobDescription=&amp;quot;Do some work&amp;quot;/&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;lt;Position JobId=&amp;quot;0002&amp;quot; JobDescription=&amp;quot;Do some other work&amp;quot;/&amp;gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;&amp;lt;/Positions&amp;gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/46394.aspx</link><pubDate>Fri, 28 Aug 2009 18:34:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46394</guid><dc:creator>bella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=46394</wfw:commentRss><description>&lt;p&gt;Cant find&amp;nbsp;how to delete my initial&amp;nbsp;post, I managed to figure out the formula on my own.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;bella&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/42510.aspx</link><pubDate>Fri, 05 Jun 2009 08:05:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42510</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42510</wfw:commentRss><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt;After having a look at your screenshots, the formula should be:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Disposal_Matrix&amp;quot;)/dfs:myFields/dfs:dataFields/d:Disposal_Matrix[@Disposal_ID = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:Roll_off_Zones/@Disposal_Site]/@Disposal_Cost&lt;/p&gt;
&lt;p&gt;Hope it helps&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/42481.aspx</link><pubDate>Thu, 04 Jun 2009 14:15:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42481</guid><dc:creator>mbrady1973</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42481</wfw:commentRss><description>&lt;p&gt;I cannot figure out how to post a screenshot in this forum....Boy, am I helpless!!!&lt;/p&gt;</description></item><item><title>Re: Populate Expression based on a dropdown selection</title><link>https://www.infopathdev.com:443/forums/thread/42479.aspx</link><pubDate>Thu, 04 Jun 2009 13:20:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42479</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42479</wfw:commentRss><description>&lt;p&gt;Could you post screenshots of both your Main Data Source and Secondary Data Source, so I can verify the formula?&lt;/p&gt;
&lt;p&gt;Please Expand all nodes when taking the screenshot&lt;/p&gt;</description></item></channel></rss>