<?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 Updating field names in MultiBox using Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Updating-field-names-in-MultiBox-using-Macro/m-p/466881#M567234</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 need to populate a MultiBox dynamically and update field names per pre-defined list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions how to do it efficiently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set MB = ActiveDocument.GetSheetObject("MB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.AddField "mpt_id"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.AddField "Project_Full_ELT"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp = MB.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(0).Label.v = "Project ID"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(0).SortCriteria.SortByState = true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(1).Label.v = "Project ELT"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(1).SortCriteria.SortByState = true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.SetProperties mbp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have table (similar to Mapping table approach) that I can use to &lt;STRONG&gt;AddFields&lt;/STRONG&gt; and &lt;STRONG&gt;UpdateFieldLabels&lt;/STRONG&gt; dynamically instead of "Hard-coded" version above?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 16:04:51 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2012-11-26T16:04:51Z</dc:date>
    <item>
      <title>Updating field names in MultiBox using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-field-names-in-MultiBox-using-Macro/m-p/466881#M567234</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 need to populate a MultiBox dynamically and update field names per pre-defined list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions how to do it efficiently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set MB = ActiveDocument.GetSheetObject("MB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.AddField "mpt_id"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.AddField "Project_Full_ELT"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp = MB.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(0).Label.v = "Project ID"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(0).SortCriteria.SortByState = true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(1).Label.v = "Project ELT"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mbp.MemberAttributes.Item(1).SortCriteria.SortByState = true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MB.SetProperties mbp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have table (similar to Mapping table approach) that I can use to &lt;STRONG&gt;AddFields&lt;/STRONG&gt; and &lt;STRONG&gt;UpdateFieldLabels&lt;/STRONG&gt; dynamically instead of "Hard-coded" version above?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 16:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-field-names-in-MultiBox-using-Macro/m-p/466881#M567234</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2012-11-26T16:04:51Z</dc:date>
    </item>
  </channel>
</rss>

