<?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: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40468.aspx</link><pubDate>Thu, 09 Apr 2009 02:40:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40468</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40468.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40468</wfw:commentRss><description>&lt;p&gt;Thx mate!&lt;/p&gt;
&lt;p&gt;The users love it.&amp;nbsp; I appreciate the help!&lt;/p&gt;
&lt;p&gt;PAW&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40464.aspx</link><pubDate>Thu, 09 Apr 2009 01:20:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40464</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40464.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40464</wfw:commentRss><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Glad everything went off without a hitch.&amp;nbsp; Using ResponseEntity in the dropdown box should be fine as long as the values are unique (and it appears they are).&amp;nbsp; You could also choose to use ResponseEntity as the &lt;em&gt;Display&lt;/em&gt; field for the dropdown box, and Code as the &lt;em&gt;Value&lt;/em&gt; field, which would allow you to keep the rest of your setup the way it is.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;InfoPath controls are merely a visual representation of the data, while the data itself exists behind the scenes.&amp;nbsp; So you could for example, have the dropdown box bound to the my:Code field while &lt;em&gt;displaying &lt;/em&gt;the ResponseEntity value, have a text box/expression box bound to the same my:Code field and actually displaying its value, and have the my:TerminationResponseEnt field populated behind the scenes the same way as you&amp;#39;re doing now, without actually binding it to a control.&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40463.aspx</link><pubDate>Wed, 08 Apr 2009 23:19:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40463</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40463</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;Got it!&amp;nbsp; Thanks! Perfecto!&lt;/p&gt;
&lt;p&gt;Now, what I was trying to do is a little more complicated than I thought.&lt;/p&gt;
&lt;p&gt;So, 1st field works.&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;RPS - Response Entity&amp;quot;)/dfs:myFields/dfs:dataFields/d:tmpPW_RPS_CodeTables/@Code[../@Code = current()/../my:TerminationRespEnt]&lt;/p&gt;
&lt;p&gt;2nd Field:&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;RPS - Response Entity&amp;quot;)/dfs:myFields/dfs:dataFields/d:tmpPW_RPS_CodeTables/&lt;strong&gt;&lt;u&gt;@CodeShortName&lt;/u&gt;&lt;/strong&gt;[../@Code = current()/../my:TerminationRespEnt]&lt;/p&gt;
&lt;p&gt;3rd and so on would be just replacing the underlined info.&lt;/p&gt;
&lt;p&gt;Again, thanks!&lt;/p&gt;
&lt;p&gt;Is this possible:&lt;/p&gt;
&lt;p&gt;If I make the drop down [my:TerminationRespEnt] actually --&amp;gt; Code &lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39; - &amp;#39;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;font size="2"&gt; CodeDescription &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;font size="2"&gt; &lt;strong&gt;ResponseEntity&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Code is the key,&lt;strong&gt; &lt;/strong&gt;but by using a concatenated column (ResponseEntity), can I still do it?&lt;/p&gt;
&lt;p&gt;PAW&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40417.aspx</link><pubDate>Wed, 08 Apr 2009 05:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40417</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40417</wfw:commentRss><description>&lt;p&gt;Ok, thank you.&amp;nbsp; Please try these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Right-click a field whose value you want to auto-populate (e.g., the textbox to the bottom left of &amp;quot;Response entity&amp;quot;) and choose Properties&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click the &lt;em&gt;fx&lt;/em&gt; icon in the Default Value section&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click &lt;strong&gt;Insert Field or Group...&lt;/strong&gt;&amp;nbsp; and select the corresponding field in your secondary data source.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Check &lt;strong&gt;Edit XPath&lt;/strong&gt;.&amp;nbsp; The contents of the formula box should look something like this, though the underlined parts will differ:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;&lt;u&gt;TestTable1&lt;/u&gt;&amp;quot;)/dfs:myFields/dfs:dataFields/d:&lt;u&gt;TestTable1&lt;/u&gt;/@&lt;u&gt;Column1&lt;/u&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Append the following to the end of that formula, replacing the underlined part with the appropriate value:&lt;br /&gt;[../@Code = current()/../my:&lt;u&gt;code&lt;/u&gt;]&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The whole thing should look something&amp;nbsp;like this:&lt;br /&gt;xdXDocument:GetDOM(&amp;quot;&lt;u&gt;TestTable1&lt;/u&gt;&amp;quot;)/dfs:myFields/dfs:dataFields/d:&lt;u&gt;TestTable1&lt;/u&gt;/@&lt;u&gt;Column1&lt;/u&gt;[../@Code = current()/../my:code]&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Click OK several times and preview the form&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;That&amp;#39;s the general idea.&amp;nbsp; Please give that a try and let me know if you get stuck.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40416.aspx</link><pubDate>Wed, 08 Apr 2009 04:57:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40416</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40416</wfw:commentRss><description>&lt;p&gt;Duh!&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thx Jimmy.&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40415.aspx</link><pubDate>Wed, 08 Apr 2009 04:06:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40415</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40415</wfw:commentRss><description>&lt;p&gt;If you click the Options tab when entering a post on this forum, you can attach files to your post.&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40413.aspx</link><pubDate>Wed, 08 Apr 2009 03:20:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40413</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40413.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40413</wfw:commentRss><description>&lt;p&gt;Okay, how can I show you the Form easily?&amp;nbsp; &amp;lt;ALT&amp;gt; Print Screen into a .bmp file, but how does one get that into a post?&lt;/p&gt;
&lt;p&gt;Or is there an easier way?&lt;/p&gt;
&lt;p&gt;PAW&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40412.aspx</link><pubDate>Wed, 08 Apr 2009 03:09:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40412</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40412</wfw:commentRss><description>&lt;p&gt;Yes, exact same source.&lt;/p&gt;
&lt;p&gt;SQL in Data Connection:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;SELECT&lt;/font&gt;&lt;font size="2"&gt; Code&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; CodeShortName&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; CodeLongName&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; CodeDescription&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; CodeStartDate&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;font size="2"&gt; CodeEndDate&lt;/font&gt;&lt;font color="#808080" size="2"&gt;,&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;Code &lt;/font&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39; - &amp;#39;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;font size="2"&gt; CodeDescription &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;font size="2"&gt; ResponseEntity&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;FROM&lt;/font&gt;&lt;font size="2"&gt; dbo&lt;/font&gt;&lt;font color="#808080" size="2"&gt;.&lt;/font&gt;&lt;font size="2"&gt;tmpPW_RPS_CodeTables&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;WHERE&lt;/font&gt;&lt;font size="2"&gt; CodeTableClassName &lt;/font&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;Response Entity&amp;#39;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;AND&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;font size="2"&gt;CodeEndDate &lt;/font&gt;&lt;font color="#808080" size="2"&gt;is&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;null&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;OR&lt;/font&gt;&lt;font size="2"&gt; CodeEndDate &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;getdate&lt;/font&gt;&lt;font color="#808080" size="2"&gt;())&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;ORDER&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;BY&lt;/font&gt;&lt;font size="2"&gt; Code&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Dropdown uses ResponseEntity.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;So Something like this below:&lt;/p&gt;
&lt;p&gt;(No luck on getting my picture into this Forum.)&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;As you can see, I have the drop down working.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;PAW&lt;/p&gt;</description></item><item><title>Re: Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40411.aspx</link><pubDate>Wed, 08 Apr 2009 02:43:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40411</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40411</wfw:commentRss><description>&lt;p&gt;Are the other five fields coming from the same data source as the codes?&amp;nbsp;&amp;nbsp;If so, could you make a simple diagram of how the source is structured?&lt;/p&gt;
&lt;p&gt;Will this be in a repeating table/section, or will there just be one section like this in your form?&lt;/p&gt;</description></item><item><title>Autopopulate Static Fields after a Drop Down Selection</title><link>https://www.infopathdev.com:443/forums/thread/40410.aspx</link><pubDate>Wed, 08 Apr 2009 02:19:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40410</guid><dc:creator>PAWInfo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=40410</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a data connection that goes to a Code Table which allows the user to select the code they want to change.&lt;/p&gt;
&lt;p&gt;This part I have working fine.&amp;nbsp; They select the code in the drop down no problem, from a list of valid codes from our database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What I want to happen, is the 6 fields below get populated based on the selection of the code so the user can see the&lt;/p&gt;
&lt;p&gt;fields below.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Short Name&amp;nbsp;&amp;nbsp;&amp;nbsp; Long Name&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&amp;nbsp;&amp;nbsp;&amp;nbsp; Start Date&amp;nbsp;&amp;nbsp; End Date&lt;/p&gt;
&lt;p&gt;So, my question is, if the user selects a code from the drop down box, how can I populate these 6 fields above based on the code they select.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;PAW&lt;/p&gt;</description></item></channel></rss>