<?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: Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109391.aspx</link><pubDate>Fri, 03 Feb 2017 22:09:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109391</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109391</wfw:commentRss><description>Well, the actual filter (stuff inside the square brackets) will vary, but generally, yes. I used current() instead of the full path to the main data source even though the SharePointListItem_RW node wasn&amp;#39;t repeating, just because I wanted the sample to be relevant for you if you had been working w/ repeating data. :)</description></item><item><title>Re: Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109389.aspx</link><pubDate>Fri, 03 Feb 2017 18:49:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109389</guid><dc:creator>Matt Leon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109389</wfw:commentRss><description>That worked perfectly.  So, is the expression &amp;quot;../d:ID = current()/../my:SQF&amp;quot; a go to for this kind of issue?  If so, and someone else needs to do the same thing, I have attached quick how to for where this expression goes.</description></item><item><title>Re: Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109378.aspx</link><pubDate>Fri, 03 Feb 2017 16:24:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109378</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109378</wfw:commentRss><description>Give this one a try. You may want to add a condition to the rule to not run if SQF in the main data source is blank. :) EDITED TO ADD: save the file locally, right click &amp;amp; select design to open in design mode.</description></item><item><title>Re: Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109375.aspx</link><pubDate>Fri, 03 Feb 2017 16:08:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109375</guid><dc:creator>Matt Leon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109375.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109375</wfw:commentRss><description>I did try to follow the steps from that link yesterday, but for some reason the math would return &amp;quot;NaN&amp;quot;, &amp;quot;Infinity&amp;quot;, &amp;quot;&amp;quot;, or the &amp;quot;Total Cost&amp;quot;/ ID.

After my failed attempts, I just figured that the link was only showing how to get the field to display the lookup value instead of displaying the lookup ID.</description></item><item><title>Re: Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109373.aspx</link><pubDate>Fri, 03 Feb 2017 15:55:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109373</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109373.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109373</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, you have to use the ID to get the value back from the secondary data source w/ the value. If you can attach your form under the Options tab in a reply, I&amp;#39;d be happy to give you a hand. This tutorial may also help you: &lt;a href="https://www.premierpointsolutions.com/training/help-and-how-to-articles/get-infopath-to-display-lookup-column-value-not-id/"&gt;https://www.premierpointsolutions.com/training/help-and-how-to-articles/get-infopath-to-display-lookup-column-value-not-id/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Use a lookup field's value, NOT its ID, in a math formula.</title><link>https://www.infopathdev.com:443/forums/thread/109372.aspx</link><pubDate>Fri, 03 Feb 2017 15:48:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109372</guid><dc:creator>Matt Leon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109372.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109372</wfw:commentRss><description>I have a text control called &amp;quot;Total Cost&amp;quot;.  It&amp;#39;s action rule has the condition: None - Run when field changes.  It&amp;#39;s action is: Set a field&amp;#39;s value: &amp;quot;$/SQF&amp;quot; = &amp;quot;Total Cost&amp;quot; / &amp;quot;SQF&amp;quot;.

&amp;quot;$/SQF&amp;quot; is a text field.  &amp;quot;SQF&amp;quot; is a lookup field.  My issue is that instead of being divided by the value of &amp;quot;SQF&amp;quot;, &amp;quot;Total Cost&amp;quot; is instead being divided by the ID of &amp;quot;SQF&amp;quot;.

Furthermore, I have another lookup field called &amp;quot;Campus&amp;quot;. It&amp;#39;s action rule has the condition: None - Run when field changes.  It&amp;#39;s action is: Set a field&amp;#39;s value: &amp;quot;SQF&amp;quot; = &amp;quot;Campus&amp;quot;.  This rule works, because it uses their matching IDs; both &amp;quot;Campus&amp;quot; and &amp;quot;SQF&amp;quot; are on the same list.

Is there a way to make it so that &amp;quot;Total Cost&amp;quot; is divided by the actual value of the square footage, not the ID, AND for &amp;quot;Campus&amp;quot; to set &amp;quot;SQF&amp;quot; equal to itself using their shared ID?

Thank you,</description></item></channel></rss>