<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Subtotals format in Adobe forms when using javascript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819061#M1882670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Saiyog!&lt;/P&gt;&lt;P&gt;Is display field of numeric or decimal type? Try to change it to decimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Dec 2014 08:55:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-12-30T08:55:53Z</dc:date>
    <item>
      <title>Subtotals format in Adobe forms when using javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819060#M1882669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating subtotals in adobe forms using java script and I am using numeric field to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; qtotal &lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt; 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; (&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; j&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;0; j &lt;SPAN style="color: blue;"&gt;&amp;lt;=&lt;/SPAN&gt; xfa.layout.page(&lt;SPAN style="color: blue;"&gt;this&lt;/SPAN&gt;)&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt;1; j&lt;SPAN style="color: blue;"&gt;++&lt;/SPAN&gt;){ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; fields &lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt; xfa.layout.pageContent(j&lt;SPAN style="color: blue;"&gt;,&lt;/SPAN&gt; "field"&lt;SPAN style="color: blue;"&gt;,&lt;/SPAN&gt; 0);&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 10pt;"&gt;//xfa.host.messageBox(xfa.layout.page(j).toString());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; (&lt;SPAN style="color: blue;"&gt;var&lt;/SPAN&gt; i&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;0; i &lt;SPAN style="color: blue;"&gt;&amp;lt;=&lt;/SPAN&gt; fields.length&lt;SPAN style="color: blue;"&gt;-&lt;/SPAN&gt;1; i&lt;SPAN style="color: blue;"&gt;++&lt;/SPAN&gt;){ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; (fields.item(i).name &lt;SPAN style="color: blue;"&gt;==&lt;/SPAN&gt; "VALUE"){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;qtotal &lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt; qtotal &lt;SPAN style="color: blue;"&gt;+&lt;/SPAN&gt; fields.item(i).rawValue; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 10pt;"&gt;this.rawValue = qtotal;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the output as 680,000 but I need it as&amp;nbsp; 6.800,00 .&lt;/P&gt;&lt;P&gt;I tried using patterns but it’s not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 14:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819060#M1882669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-29T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals format in Adobe forms when using javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819061#M1882670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Saiyog!&lt;/P&gt;&lt;P&gt;Is display field of numeric or decimal type? Try to change it to decimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 08:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819061#M1882670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-30T08:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals format in Adobe forms when using javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819062#M1882671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikolay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display field i tried with decimal and numeric both..its not working..so i posted it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 09:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819062#M1882671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-30T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals format in Adobe forms when using javascript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819063#M1882672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try to bind the calculated value to a decimal field without any patterns. If it wouldn't help - then it's time for testing &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1103/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Some options for you to check and test:&lt;/P&gt;&lt;P&gt;1) check the value in qtotal (e.g. show it in a messagebox)&lt;/P&gt;&lt;P&gt;2) try to bind qtotal to any other decimal field - maybe it's just a "bad" field and you just need to recreate it. I've seen an unexplainable behaviour of fields a couple of times.&lt;/P&gt;&lt;P&gt;3) and - by the way - does the field has enough width for the calculated value? If the value would overlap the cell you can get format surprises from the field.&lt;/P&gt;&lt;P&gt;If it still wouldn't help, then I'd like to have a look at the form. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 10:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotals-format-in-adobe-forms-when-using-javascript/m-p/10819063#M1882672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-30T10:20:08Z</dc:date>
    </item>
  </channel>
</rss>

