<?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 Dynamically load and display table data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-load-and-display-table-data/m-p/478148#M178604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I have a question for all, I am having trouble working out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an app that has the ability to load failing rows from any dataset. (a number of records)&lt;/P&gt;&lt;P&gt;Each data set can have a varying number of columns and a varying number of rows - nothing is guaranteed to be consistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to load the data, regardless of shape or size into a dynamic tablebox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only code I can use for this is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;Select * from view_entity_fail&lt;/P&gt;&lt;P&gt;where eid=X; (Where X is the identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have no column name given or supplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example output is attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 11:34:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-16T11:34:45Z</dc:date>
    <item>
      <title>Dynamically load and display table data</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-and-display-table-data/m-p/478148#M178604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I have a question for all, I am having trouble working out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an app that has the ability to load failing rows from any dataset. (a number of records)&lt;/P&gt;&lt;P&gt;Each data set can have a varying number of columns and a varying number of rows - nothing is guaranteed to be consistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to load the data, regardless of shape or size into a dynamic tablebox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only code I can use for this is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;Select * from view_entity_fail&lt;/P&gt;&lt;P&gt;where eid=X; (Where X is the identifier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have no column name given or supplied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example output is attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 11:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-and-display-table-data/m-p/478148#M178604</guid>
      <dc:creator />
      <dc:date>2013-10-16T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically load and display table data</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-load-and-display-table-data/m-p/478149#M178605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a macro to create a tablebox with all the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="css" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13819420210343225" jivemacro_uid="_13819420210343225" modifiedtitle="true"&gt;
&lt;P&gt;sub CreateTablebox&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set tb = ActiveDocument.Sheets("Main").CreateTableBox&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set flds = ActiveDocument.GetFieldDescriptions&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 0 to flds.count - 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld = flds.item(i)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not fld.IsSystem then tb.AddField fld.Name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try adding an action to run the macro to the OnOpen document trigger or add a button to your document and add the action to the button. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 16:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-load-and-display-table-data/m-p/478149#M178605</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-16T16:48:56Z</dc:date>
    </item>
  </channel>
</rss>

