<?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 Externalize field formating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Externalize-field-formating/m-p/316666#M116819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already adding tags &amp;amp; comments to QV Fields through an external file; using following code (Example taken from the QV Help):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;tagmap:&lt;/P&gt;&lt;P&gt;mapping Load * inline [&lt;/P&gt;&lt;P&gt;a,b&lt;/P&gt;&lt;P&gt;Alpha,MyTag&lt;/P&gt;&lt;P&gt;Num,MyTag&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;tag fields using tagmap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commentmap:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;a,b&lt;/P&gt;&lt;P&gt;Alpha,This field contains text values&lt;/P&gt;&lt;P&gt;Num,This field contains numeric values&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;comment fields using commentmap;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a similar way to control the formatting of my fields? in order to overwrite the properties given in the following screen:&lt;/P&gt;&lt;P&gt;Settings &amp;gt; Document Properties... &amp;gt; Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I want all my measures to be shown with 2 decimals, and blank separator for thousands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2011 07:51:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-29T07:51:45Z</dc:date>
    <item>
      <title>Externalize field formating</title>
      <link>https://community.qlik.com/t5/QlikView/Externalize-field-formating/m-p/316666#M116819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already adding tags &amp;amp; comments to QV Fields through an external file; using following code (Example taken from the QV Help):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;tagmap:&lt;/P&gt;&lt;P&gt;mapping Load * inline [&lt;/P&gt;&lt;P&gt;a,b&lt;/P&gt;&lt;P&gt;Alpha,MyTag&lt;/P&gt;&lt;P&gt;Num,MyTag&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;tag fields using tagmap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commentmap:&lt;/P&gt;&lt;P&gt;mapping load * inline [&lt;/P&gt;&lt;P&gt;a,b&lt;/P&gt;&lt;P&gt;Alpha,This field contains text values&lt;/P&gt;&lt;P&gt;Num,This field contains numeric values&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;comment fields using commentmap;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a similar way to control the formatting of my fields? in order to overwrite the properties given in the following screen:&lt;/P&gt;&lt;P&gt;Settings &amp;gt; Document Properties... &amp;gt; Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I want all my measures to be shown with 2 decimals, and blank separator for thousands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 07:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Externalize-field-formating/m-p/316666#M116819</guid>
      <dc:creator />
      <dc:date>2011-07-29T07:51:45Z</dc:date>
    </item>
    <item>
      <title>Externalize field formating</title>
      <link>https://community.qlik.com/t5/QlikView/Externalize-field-formating/m-p/316667#M116820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know a way to automate that in script. But you could do that with a macro. In the API (qvw in your installation folder), you have an example to format a field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;set fld=ActiveDocument.GetField("Amount")&lt;/P&gt;&lt;P&gt;set fprop = fld.GetProperties&lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.Dec = asc(".")&lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.Fmt = "# ##0.00"&lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.nDec = 2&lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.Thou = asc(" ")&lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.Type = 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fixed decimal &lt;/P&gt;&lt;P&gt;fprop.NumberPresentation.UseThou = 1&lt;/P&gt;&lt;P&gt;fld.SetProperties fprop&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a "for" instruction, you could automate this action on a field list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maxime S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 09:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Externalize-field-formating/m-p/316667#M116820</guid>
      <dc:creator />
      <dc:date>2011-07-29T09:41:13Z</dc:date>
    </item>
  </channel>
</rss>

