<?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 Cannot add fields to TableBox using the automation interface in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-add-fields-to-TableBox-using-the-automation-interface/m-p/171131#M41275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to use Automation interface to create tablebox and add fields to it from a simple external program written in c#.&lt;BR /&gt;I use QlikView type library integrated in the QlikView.exe file.&lt;/P&gt;&lt;P&gt;TableBox table = app.ActiveDocument().ActivateSheet("Main").CreateTableBox();&lt;BR /&gt; app.ActiveDocument().DoReload(1, false, false);&lt;/P&gt;&lt;P&gt;After reloading data, I have two fields (apart from system fields) available in my ActiveDocument: "col_id" and "name".&lt;BR /&gt;I've checked it using IArrayOfFieldDescription object. Then I try to add both fields to the tableBox:&lt;BR /&gt;table.AddField("col_id");&lt;BR /&gt;Ok, no error. Then i try to add second field:&lt;BR /&gt;table.AddField("name");&lt;BR /&gt;or e.g. remove the first field: table.RemoveField(0);&lt;BR /&gt;or table.GetField(0);&lt;BR /&gt;These all result in "W wyniku wywo?ania sk?adnika modelu COM zosta? zwrócony b??d HRESULT E_FAIL." error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jan 2011 10:28:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-17T10:28:07Z</dc:date>
    <item>
      <title>Cannot add fields to TableBox using the automation interface</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-add-fields-to-TableBox-using-the-automation-interface/m-p/171131#M41275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to use Automation interface to create tablebox and add fields to it from a simple external program written in c#.&lt;BR /&gt;I use QlikView type library integrated in the QlikView.exe file.&lt;/P&gt;&lt;P&gt;TableBox table = app.ActiveDocument().ActivateSheet("Main").CreateTableBox();&lt;BR /&gt; app.ActiveDocument().DoReload(1, false, false);&lt;/P&gt;&lt;P&gt;After reloading data, I have two fields (apart from system fields) available in my ActiveDocument: "col_id" and "name".&lt;BR /&gt;I've checked it using IArrayOfFieldDescription object. Then I try to add both fields to the tableBox:&lt;BR /&gt;table.AddField("col_id");&lt;BR /&gt;Ok, no error. Then i try to add second field:&lt;BR /&gt;table.AddField("name");&lt;BR /&gt;or e.g. remove the first field: table.RemoveField(0);&lt;BR /&gt;or table.GetField(0);&lt;BR /&gt;These all result in "W wyniku wywo?ania sk?adnika modelu COM zosta? zwrócony b??d HRESULT E_FAIL." error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 10:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-add-fields-to-TableBox-using-the-automation-interface/m-p/171131#M41275</guid>
      <dc:creator />
      <dc:date>2011-01-17T10:28:07Z</dc:date>
    </item>
  </channel>
</rss>

