I try to create tablebox and add fields to it from a simple external program written in c# using the QlikView type library integrated in the qv.exe file.
After reloading data (app.ActiveDocument().DoReload(1, false, false);), I have two fields (apart from system fields) available in my ActiveDocument: "col_id" and "name".
I create a TableBox (TableBox table = app.ActiveDocument().ActivateSheet("Main").CreateTableBox();)
and try to add both fields to it. The second table.AddField("name"); results in unhandled COM exception caused by HRESULT E_FAIL error.
However, adding the second field manually from the QlikView Personal Edition dashboard IS possible:
open tableBox Properties -> move the second field from the Available list to Displayed list-> click apply -> column is added and data is shown.
Have anybody ever created dashboard with simple tablebox programatically? Where can I get some examples?