<?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: There is a macro which generates table box dynamically.How do I change the presentation (alignment) of the table box dynamically? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301354#M516252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the API Guide:&lt;/P&gt;&lt;P&gt;set mybox = ActiveDocument.ActiveSheet.CreateTableBox&lt;/P&gt;&lt;P&gt;mybox.AddField "Class"&lt;/P&gt;&lt;P&gt;mybox.AddField "ClassComment"&lt;/P&gt;&lt;P&gt;set tbp = mybox.GetProperties&lt;/P&gt;&lt;P&gt;tbp.Layout.HeaderMultiLine = 2&lt;/P&gt;&lt;P&gt;tbp.Layout.ColLayouts.Item(0).LabelVerticalAdjust = 4&amp;nbsp;&amp;nbsp;&amp;nbsp; 'center&lt;/P&gt;&lt;P&gt;tbp.Layout.ColLayouts.Item(0).LabelAdjust = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 'center&lt;/P&gt;&lt;P&gt;mybox.SetProperties tbp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 14:02:07 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2017-05-08T14:02:07Z</dc:date>
    <item>
      <title>There is a macro which generates table box dynamically.How do I change the presentation (alignment) of the table box dynamically?</title>
      <link>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301353#M516251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I change the alignment of the data of table box and the header ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test1234&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim tb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set tb= ActiveDocument.GetSheetObject("TB124")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set clus1 = ActiveDocument.Variables("Vbranch_Z")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clus = clus1.GetContent.String&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tb.removeField(1)&lt;/P&gt;&lt;P&gt;tb.removeField(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tb.AddField "ORDER_KEY_" &amp;amp; clus&lt;/P&gt;&lt;P&gt;tb.AddField "Clus_input_" &amp;amp; clus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set tbp = tb.GetProperties&lt;/P&gt;&lt;P&gt; set cols = tbp.Layout.ColLayouts&lt;/P&gt;&lt;P&gt; cols.Item(0).Label.v = "Name"&lt;/P&gt;&lt;P&gt; cols.Item(1).Label.v = "ID"&lt;/P&gt;&lt;P&gt; tb.SetProperties tbp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 11:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301353#M516251</guid>
      <dc:creator />
      <dc:date>2017-05-08T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: There is a macro which generates table box dynamically.How do I change the presentation (alignment) of the table box dynamically?</title>
      <link>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301354#M516252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the API Guide:&lt;/P&gt;&lt;P&gt;set mybox = ActiveDocument.ActiveSheet.CreateTableBox&lt;/P&gt;&lt;P&gt;mybox.AddField "Class"&lt;/P&gt;&lt;P&gt;mybox.AddField "ClassComment"&lt;/P&gt;&lt;P&gt;set tbp = mybox.GetProperties&lt;/P&gt;&lt;P&gt;tbp.Layout.HeaderMultiLine = 2&lt;/P&gt;&lt;P&gt;tbp.Layout.ColLayouts.Item(0).LabelVerticalAdjust = 4&amp;nbsp;&amp;nbsp;&amp;nbsp; 'center&lt;/P&gt;&lt;P&gt;tbp.Layout.ColLayouts.Item(0).LabelAdjust = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 'center&lt;/P&gt;&lt;P&gt;mybox.SetProperties tbp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 14:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301354#M516252</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-05-08T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: There is a macro which generates table box dynamically.How do I change the presentation (alignment) of the table box dynamically?</title>
      <link>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301355#M516253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code snippet is helpful in making the Label Center Justified. I want to make the data within these labels center justified,ike the numbers 1, 2,3(i. e. the data within the column ID center justified.And Also How do i increase the size of the table box from default.Could you please guide me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 19:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301355#M516253</guid>
      <dc:creator />
      <dc:date>2017-05-08T19:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: There is a macro which generates table box dynamically.How do I change the presentation (alignment) of the table box dynamically?</title>
      <link>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301356#M516254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; set tbp = tb.GetProperties&lt;/P&gt;&lt;P&gt; set cols = tbp.Layout.ColLayouts&lt;/P&gt;&lt;P&gt; cols.Item(0).Label.v = " ID"&lt;/P&gt;&lt;P&gt; cols.Item(0).ColWidth = 500&lt;/P&gt;&lt;P&gt; cols.Item(0).LabelVerticalAdjust = 4&lt;/P&gt;&lt;P&gt; cols.Item(0).LabelAdjust = 1 &lt;/P&gt;&lt;P&gt; cols.Item(0).NumAdjust = 1&lt;/P&gt;&lt;P&gt; cols.Item(1).Label.v = "Name"&lt;/P&gt;&lt;P&gt; cols.Item(1).ColWidth = 500&lt;/P&gt;&lt;P&gt; cols.Item(1).LabelVerticalAdjust = 4&lt;/P&gt;&lt;P&gt; cols.Item(1).LabelAdjust = 1 &lt;/P&gt;&lt;P&gt; cols.Item(1).TextAdjust = 1&lt;/P&gt;&lt;P&gt; tb.SetProperties tbp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could solve the problem by your suggestions .I used API Guide as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 06:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/There-is-a-macro-which-generates-table-box-dynamically-How-do-I/m-p/1301356#M516254</guid>
      <dc:creator />
      <dc:date>2017-05-09T06:55:05Z</dc:date>
    </item>
  </channel>
</rss>

