<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115615.aspx</link><pubDate>Tue, 14 Feb 2017 15:40:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115615</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115615</wfw:commentRss><description>Wonderful, glad this is all working as anticipated. :)</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115614.aspx</link><pubDate>Tue, 14 Feb 2017 13:12:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115614</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115614</wfw:commentRss><description>Thanks again Hilary. Everything is working great and the update to the form went into production this morning. All of your recommendations worked. 

I created a rule on the submit to check for duplicated invoice totals by using a query rule. Then setting a helper field to true if found. If an invoice total is exactly the same as the one they&amp;#39;re currently filling out it is exposed in the secondary data connection table that you helped get working with this expression number(d:Invoice_x0020_Total) != number(xdXDocument:get-DOM()/my:myFields/my:Main/my:Invoices/my:FullTotal). If the invoice is still wants to be submitted, I expose an override submit button at the same time.</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115611.aspx</link><pubDate>Mon, 13 Feb 2017 20:25:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115611</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115611.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115611</wfw:commentRss><description>Hilary thank you it does work querying right off of the fulltotal. I added a button and it does retrieve the correct value.</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115608.aspx</link><pubDate>Mon, 13 Feb 2017 19:29:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115608</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115608.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115608</wfw:commentRss><description>Well, I&amp;#39;m not sure - perhaps the query would work even w/out the exact number of zeros - have you tried it? Put the query &amp;amp; data fields on your form and add a button to execute the query - enter a value and see what happens?</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115606.aspx</link><pubDate>Mon, 13 Feb 2017 19:27:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115606</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115606.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115606</wfw:commentRss><description>Hilary maybe you can help me a little more? Could I create a query on the invoice total so I don&amp;#39;t have to have the data connection set to always retrieve? I would query using the fulltotal on InvoiceTotal to retrieve the matching invoices. Problem is formatting again because SP has more zeros right?</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115600.aspx</link><pubDate>Mon, 13 Feb 2017 17:45:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115600</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115600</wfw:commentRss><description>NICE! That worked. Thank you so much. Will need to remember this. Now I can put this together how I want.</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115599.aspx</link><pubDate>Mon, 13 Feb 2017 16:47:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115599</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115599</wfw:commentRss><description>Formatting settings simply determine how the data is displayed in SharePoint, not what the value actually is. So - set up your formatting as you had it then in the condition, change the first drop down to &amp;quot;the expression&amp;quot;. After you do that, you can use the number function around each of the fields: number(d:Invoice_x0020_Total) != number(xdXDocument:get-DOM()/my:myFields/my:FullTotal)</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/115595.aspx</link><pubDate>Mon, 13 Feb 2017 13:16:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115595</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115595</wfw:commentRss><description>Hi Hilary,

Thank you for the reply. I figured as much that SharePoint was returning more zeros. I went to that column and formatted it the same currency and 2 decimal places,but when it is retrieved in InfoPath it doesn&amp;#39;t follow the column formatting. I tried using the number function as you suggested but no change. Do you have any other ideas? 

I was thinking maybe using substring(Invoice_x0020_Total, 1, 5) which returns the correct number but not sure how to pull it all together.</description></item><item><title>Re: Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/109454.aspx</link><pubDate>Thu, 09 Feb 2017 16:01:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109454</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109454</wfw:commentRss><description>I&amp;#39;m pretty sure SharePoint is returning more decimal places than you may think. See the attached screenshot that shows the Invoice Total format settings - try changing that to &amp;quot;none&amp;quot; so you can see the actual value. Maybe do the same w/ Full Total, so you are seeing the actual XML value for both. Then you can figure out what to do from there. I think the number() function may help, actually, so try changing your comparison in your sample form to the expression: number(d:Invoice_x0020_Total) != number(xdXDocument:get-DOM()/my:myFields/my:FullTotal)</description></item><item><title>Format rule with currency</title><link>https://www.infopathdev.com:443/forums/thread/109452.aspx</link><pubDate>Thu, 09 Feb 2017 15:48:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109452</guid><dc:creator>K5Optima</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109452</wfw:commentRss><description>I have a sharepoint list used as a 2ndary data connection that has two columns called Invoice # and Invoice Total. I have dragged the table onto the canvas and I am trying to add a formatting rule d:Invoice_x0020_Total != xdXDocument:get-DOM()/my:myFields/my:FullTotal. These numbers match but the table remains blank. If I do the same using Invoice # it works fine. 

Is currency not actually currency when the rule runs? The two fields match $5721.05 but fails.</description></item></channel></rss>