<?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: Returning Display name from an ID</title><link>https://www.infopathdev.com:443/forums/thread/53441.aspx</link><pubDate>Wed, 07 Apr 2010 20:23:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53441</guid><dc:creator>DanRegalia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53441</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Patrick, &lt;/p&gt;&lt;p&gt;&amp;nbsp;You are correct, i am in a repeating section.&amp;nbsp; Does that mean i would have to use something like: &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;xdXDocument:GetDOM(&amp;quot;vwFIMS_Sizes&amp;quot;)/dfs:myFields/dfs:dataFields/d:vwFIMS_Sizes/@SizeName[xdXDocument:GetDOM(&amp;quot;vwFIMS_Sizes&amp;quot;)/dfs:myFields/dfs:dataFields/d:vwFIMS_Sizes/@SizeID = current()/number(.)]&amp;nbsp; &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Where i specify to use the current row&amp;#39;s value?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Returning Display name from an ID</title><link>https://www.infopathdev.com:443/forums/thread/53434.aspx</link><pubDate>Wed, 07 Apr 2010 17:09:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53434</guid><dc:creator>DanRegalia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53434</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What parts of the xsn do you want?&amp;nbsp; the datasource of the vwFIMS_Sizes or actual code behind the form?&lt;/p&gt;&lt;p&gt;&amp;nbsp;EDIT:&lt;br /&gt;Or if you shoot me a private message with your email address in it, i&amp;#39;ll email you the entire xsn file. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Returning Display name from an ID</title><link>https://www.infopathdev.com:443/forums/thread/53416.aspx</link><pubDate>Wed, 07 Apr 2010 13:47:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53416</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53416.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53416</wfw:commentRss><description>&lt;p&gt;Hi Dan and welcome back!&lt;/p&gt;
&lt;p&gt;Can you attach your XSN or a sample that shows the error? My hunch is that the &amp;quot;.&amp;quot; in your xpath won&amp;#39;t work because you are in a repeating structure, but I need to look at your form to ascertain.&lt;/p&gt;</description></item><item><title>Returning Display name from an ID</title><link>https://www.infopathdev.com:443/forums/thread/53379.aspx</link><pubDate>Tue, 06 Apr 2010 17:00:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53379</guid><dc:creator>DanRegalia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53379</wfw:commentRss><description>&lt;p&gt;Hey all, long time no see, hope all is well with you. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m running into an odd situation.. I have a filtered list that displays text values, and saves the ID in a field.&amp;nbsp; I want to return the Display name field into another field i&amp;#39;ve setup.&lt;/p&gt;&lt;p&gt;I followed these instructions that i found on a different site (See below the post). &amp;nbsp; &lt;/p&gt;&lt;p&gt;I made a rule that says update a field with this value:&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;xdXDocument:GetDOM(&amp;quot;vwFIMS_Sizes&amp;quot;)/dfs:myFields/dfs:dataFields/d:vwFIMS_Sizes/@SizeName[@SizeID = number(.)] &lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;(I&amp;#39;ve also tried:&amp;nbsp; &lt;i&gt;&lt;b&gt;xdXDocument:GetDOM(&amp;quot;vwFIMS_Sizes&amp;quot;)/dfs:myFields/dfs:dataFields/d:vwFIMS_Sizes/@SizeName[xdXDocument:GetDOM(&amp;quot;vwFIMS_Sizes&amp;quot;)/dfs:myFields/dfs:dataFields/d:vwFIMS_Sizes/@SizeID = .]&lt;/b&gt;&lt;/i&gt;&amp;nbsp; )&lt;/p&gt;&lt;p&gt;&amp;nbsp;Now.. vsFIMS_Sizes is the Datasource that i&amp;#39;m pulling in from the database&lt;/p&gt;&lt;p&gt;Field names are pretty self explanatory. &amp;nbsp; &lt;/p&gt;&lt;p&gt;Now, the field returns back a number that makes no sense whatsoever (which is not an sizeID that is not a value in my filtered list).&amp;nbsp; &lt;/p&gt;&lt;p&gt;Any insight you can give would be much appreciated. &amp;nbsp;&lt;/p&gt;&lt;p&gt;~Dan &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Here are the instructions i followed to get there:&lt;/p&gt;Add fields to the form:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. Add a combo box. This will contain the dynamic list of names to be used. Give this control a meaningful name, as it will be referenced by other fields on the form. I named mine &amp;quot;NameOfRequestor&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Add two text boxes and make them read only. these will display the Phone and Email addresses. Since they are lookup values, I didn&amp;#39;t want the user to change them. I named these fields &amp;quot;RequestorPhone&amp;quot; and &amp;quot;RequestorEmail&amp;quot;. &lt;br /&gt;&lt;br /&gt;Add a data connection:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. Go to Data Sources and add a new connection to Receive Data. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Select SharePoint Library or List &lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Enter the URL of the site you&amp;#39;re receiving data from. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. Select the list / library. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 5. Specify the columns you want to include in your resultset (In my case, it was Full Name, Phone, and Email) &lt;br /&gt;&amp;nbsp;&amp;nbsp; 6. You can optionally choose to save a copy of the downloaded results in the form template, so that it will contain a snapshot of list items that will be available when the form is filled out offline. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 7. Provide a name for the data connection (I named mine &amp;quot;Requestors&amp;quot;) and click Finish.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;Click on Properties to Bind the Data Connection to the Combo Box.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. Under Llist box entries, select &amp;quot;Look up values from an external source&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Select the data source you created above. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. In the &amp;quot;Entries&amp;quot; field, click the Browse button and drill down to MyFields--&amp;gt;dataFields--&amp;gt;(Your data connection). Click OK. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 4. The &amp;quot;Value&amp;quot; and &amp;quot;Display Name&amp;quot; fields will suggest a field to be used, If it is not the right one, browse to the correct fields. In my case it was @Full_Name. &lt;br /&gt;&lt;br /&gt;Set up a Rule to update other fields when this field is updated.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 1. In the Combo Box properties, click the &amp;quot;Rules&amp;quot; button. Add a new rule. &lt;br /&gt;&amp;nbsp;&amp;nbsp; 2. Do not set a condition (this rule always applies). &lt;br /&gt;&amp;nbsp;&amp;nbsp; 3. Add an action to update the RequestorPhone text box.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Action: &amp;quot;Set a field&amp;#39;s value&amp;quot;. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Field: This part is a little tricky. You want to update the text box, so be sure the &amp;quot;Data source&amp;quot; is set to &amp;quot;Main&amp;quot;. Drill down to the &amp;quot;RequestorPhone &amp;quot; field and click OK. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Value: Click the formula button. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Click the Insert Field or Group button and select the Requestors Data source you added above. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Drill down to the &amp;quot;MyFields--&amp;gt;dataFields--&amp;gt;Requestors&amp;quot; and select the field for &amp;quot;Business_Phone&amp;quot; (this is the name of the field in my SharePoint list). &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Click the Filter Data button. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + Add a filter for when &amp;quot;Full_Name&amp;quot; &amp;quot;is equal to&amp;quot; and in the criteria field, click &amp;quot;Select Field or Group&amp;quot;. In the &amp;quot;Main&amp;quot; data source, select the &amp;quot;NameOfRequestor&amp;quot; combo box. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + Click OK. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + Click OK. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o The formula should read something like &amp;quot;@Business_Phone[@Full_Name = NameOfRequestor]&amp;quot;. &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o Which translates to &amp;quot;Show me the [Business Phone] value from my data set where the [Full Name] value matches whatever value is in the Combo Box [NameOfRequestor]. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * You&amp;#39;re not done!&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>