<?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: Macro for setting load order for Fields Displayed in Table Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740609#M661510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use inside the vbs the split() function with the delimiter "|" to create an array through which you could loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 11:44:02 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-03-20T11:44:02Z</dc:date>
    <item>
      <title>Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740606#M661506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QlikViewer's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table box which is populated by a macro using the field selections a user wants. But the order of the fields displayed would be in the alphabetical order. i.e., I have two 4 fields.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 275px; height: 83px;" width="273"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Age&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Mobile&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Subin&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;India&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;George&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;USA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8899&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Thomas&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;China&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7898&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, a user selects, Name &amp;amp; Age as the fields to be displayed - first selection on Name &amp;amp; then on Age&lt;/P&gt;&lt;P&gt;then both the fields would be displayed as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 141px; height: 79px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Age&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Subin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;George&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Thomas&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see the above order, the fields are displayed in Alphabetical order. How can we achieve to get the load order. i.e., First Name field should be shown and then Age Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 12:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740606#M661506</guid>
      <dc:creator>subin6600</dc:creator>
      <dc:date>2015-03-18T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740607#M661508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want build the tablebox with a user-defined field-order you will need to store the selected values into a variable, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varFieldOrder = '$(varFieldOrder)' &amp;amp; getfieldselections(YourFieldListbox, '|') &amp;amp; '|' &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you could loop through these variable. But you will need some more logic to clear the variable after creating the tablebox and handle any errors. Easier could be to create such field-order by the tablebox in steps - first step: tablebox wille be created with the first field, second/third ... step will be to append field after field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe easiest way would be the user adjust the tablebox by drag 'n drop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740607#M661508</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-18T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740608#M661509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, I got your idea of storing the user selected fields in a variable. But how can I loop it to be visible to the users in a table box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740608#M661509</guid>
      <dc:creator>subin6600</dc:creator>
      <dc:date>2015-03-20T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740609#M661510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use inside the vbs the split() function with the delimiter "|" to create an array through which you could loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740609#M661510</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-20T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740610#M661511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, When tried to get the getFieldSelections with the field, the values gets sorted again in alphabetical order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740610#M661511</guid>
      <dc:creator>subin6600</dc:creator>
      <dc:date>2015-03-20T13:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for setting load order for Fields Displayed in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740611#M661512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was meant for a step by step selection and each single selection will be concatenated to the variable-value. Will be several field-values selected at once then there won't be any possibilty to track a order - it will be ordered alphabetically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-setting-load-order-for-Fields-Displayed-in-Table-Box/m-p/740611#M661512</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-20T13:27:36Z</dc:date>
    </item>
  </channel>
</rss>

