<?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 Inserting value into a column of TableBox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inserting-value-into-a-column-of-TableBox/m-p/647880#M237221</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 have a TableBox Object that loads with certain columns and data.&lt;/P&gt;&lt;P&gt;In a macro I need to be able to add a column to this TableBox, that I can do by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set tb = ActiveDocument.GetSheetObject("TB06")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.AddField("CampaignId")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then in this column I need to insert a value for every row (every row will have the same value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I have to do this afterwards is because I have to insert some other data in a database and get an Id back before I can set the value of this column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 08:13:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-02T08:13:23Z</dc:date>
    <item>
      <title>Inserting value into a column of TableBox</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-value-into-a-column-of-TableBox/m-p/647880#M237221</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 have a TableBox Object that loads with certain columns and data.&lt;/P&gt;&lt;P&gt;In a macro I need to be able to add a column to this TableBox, that I can do by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set tb = ActiveDocument.GetSheetObject("TB06")&lt;/P&gt;&lt;P&gt;&amp;nbsp; tb.AddField("CampaignId")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then in this column I need to insert a value for every row (every row will have the same value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I have to do this afterwards is because I have to insert some other data in a database and get an Id back before I can set the value of this column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-value-into-a-column-of-TableBox/m-p/647880#M237221</guid>
      <dc:creator />
      <dc:date>2014-10-02T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting value into a column of TableBox</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-value-into-a-column-of-TableBox/m-p/647881#M237222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a dynamic update action you may be able to use. From the help file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-left: auto; margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;Dynamic Update&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P&gt;Performs a dynamic update of the data in the currently loaded document. The statement for the dynamic update is to be entered in the &lt;SPAN class="Bold"&gt;Statement&lt;/SPAN&gt; field.&lt;/P&gt;&lt;P&gt;The intended usage of Dynamic Update allows a QlikView Administrator to feed limited amounts of data in to a QlikView document from a single source without running a reload of the document. Analysis can then be performed by multiple clients connecting to the QlikView Server.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note!&lt;/STRONG&gt; The uploaded information is stored in RAM only so any data added or updated using Dynamic Update will be lost if a reload of the document is performed.&lt;/P&gt;&lt;P&gt;The following grammar describes the possible statements and their components that can be used with the Dynamic Update feature:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;statements ::= statement { “;” statement } &lt;/LI&gt;&lt;LI&gt;statement ::= insert_statement | update_statement | delete_statement | begin_transaction_statement | commit_transaction_statement &lt;/LI&gt;&lt;LI&gt;insert_statement ::= "INSERT" "INTO" ("*" | table_name) field_list "VALUES" value_list {"," value_list} ["KEY" ["AUTO" | (" (" field_list ")")] ["REPLACE" (["WITH" "ONE"] | "EACH") ]] &lt;/LI&gt;&lt;LI&gt;update_statement ::= "UPDATE" ("*" | table_name) set_clause {"," | set_clause} "WHERE" condition ["AUTO" "INSERT"] &lt;/LI&gt;&lt;LI&gt;delete_statement ::= "DELETE" "FROM" ("*" | table_name] "WHERE" condition &lt;/LI&gt;&lt;LI&gt;begin_transaction_statement ::= "BEGIN" ("TRANSACTION" | "TRAN") [trans_name] &lt;/LI&gt;&lt;LI&gt;commit_transaction_statement ::= "COMMIT" ["TRANSACTION" | "TRAN"] [trans_name] &lt;/LI&gt;&lt;LI&gt;table_name ::= identifier | quoted_name &lt;/LI&gt;&lt;LI&gt;field_list ::= "(" field_name {"," field_name} ")" &lt;/LI&gt;&lt;LI&gt;value_list ::= "("value {"," value} ")" &lt;/LI&gt;&lt;LI&gt;set_clause ::= "SET" field_name "=" any_valid_non_aggregated_qlikview_expression &lt;/LI&gt;&lt;LI&gt;field_name ::= identifier | quoted string &lt;/LI&gt;&lt;LI&gt;value ::= identifier | any_qlikview_number | quoted string &lt;/LI&gt;&lt;LI&gt;condition ::= any_valid_non_aggregated_qlikview_expression &lt;/LI&gt;&lt;LI&gt;identifier ::= any_qlikview_identifier &lt;/LI&gt;&lt;LI&gt;quoted_string ::= "[" [^]]+ "]" &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;UPDATE AbcTable SET Discount = 123 WHERE AbcField=1&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note!&lt;/STRONG&gt; To use this feature, Dynamic Update must be allowed both on the Document and on the Server.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-value-into-a-column-of-TableBox/m-p/647881#M237222</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-02T08:32:15Z</dc:date>
    </item>
  </channel>
</rss>

