<?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 How to create a table in a sheet using Qlik Sense Engine API? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/49970#M745</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 problem with Qlik Sense Engine API and will be glad if you can help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to create a table in a sheet. I use CreateChild method according qlik.help (&lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/CreateVisualizations/create-listObject.htm" title="https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/CreateVisualizations/create-listObject.htm"&gt;https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/Crea…&lt;/A&gt;). There isn't a mistake but I can't see the table in the sheet.&amp;nbsp; What shuld I do for creating a table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 14:11:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-03T14:11:17Z</dc:date>
    <item>
      <title>How to create a table in a sheet using Qlik Sense Engine API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/49970#M745</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 problem with Qlik Sense Engine API and will be glad if you can help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to create a table in a sheet. I use CreateChild method according qlik.help (&lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/CreateVisualizations/create-listObject.htm" title="https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/CreateVisualizations/create-listObject.htm"&gt;https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/EngineAPI/Content/WorkingWithAppsAndVisualizations/Crea…&lt;/A&gt;). There isn't a mistake but I can't see the table in the sheet.&amp;nbsp; What shuld I do for creating a table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 14:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/49970#M745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table in a sheet using Qlik Sense Engine API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/49971#M746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to add the created object to a cell in the sheet properties as well. I recommend you download this tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-17475" title="https://community.qlik.com/docs/DOC-17475"&gt;https://community.qlik.com/docs/DOC-17475&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through that tool you can navigate to the sheet object and look at it's properties. That should give you a clearer picture of how the sheet object stores its properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what technology you are using for your API calls, but if you use the .Net SDK you can also leverage this method which will make sure the created object is added correctly to the sheet properties as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/Overload_Qlik_Sense_Client_ISheet_CreateTable.htm" title="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/Overload_Qlik_Sense_Client_ISheet_CreateTable.htm"&gt;https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/Overload_Qlik_Sense_Client_ISheet_CreateTable.ht…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 06:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/49971#M746</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-05-04T06:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table in a sheet using Qlik Sense Engine API?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/2479052#M21177</link>
      <description>&lt;P&gt;In case anybody will need more details, here is how to create a copy of an object (chart, table) with API, step by step&lt;/P&gt;
&lt;P&gt;1. Get the source object properties ('query' here stands for a function that returns the API response):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source_properties = query({
"jsonrpc": "2.0",
"id": 2,
"method": "GetProperties",
"handle": source_object.handle,
"params": []
})&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a child on a target sheet&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;create_child = query({
"jsonrpc": "2.0",
"id": 2,
"method": "CreateChild",
"handle": source_sheet.handle,
"params": [
source_properties['result']['qProp']
]
})&lt;/LI-CODE&gt;
&lt;P&gt;Now the object is created but not visible yet, to make it visible we have to edit the target sheet itself.&lt;/P&gt;
&lt;P&gt;3. Get the ID of the child created (from the API response)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new_object_id = create_child['result']['qReturn']['qGenericId']&lt;/LI-CODE&gt;
&lt;P&gt;4. Get properties of the target sheet&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;target_sheet_properties = query({
"jsonrpc": "2.0",
"id": 2,
"method": "GetProperties",
"handle": target_sheet.handle,
"params": []
})&lt;/LI-CODE&gt;
&lt;P&gt;5. Add new object to the cells list of the sheet&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;target_sheet_properties['result']['qProp']['cells'].append({'name': new_object_id,
'type': 'table',
'col': 1,
'row': 7,
'colspan': 4,
'rowspan': 4,
'bounds': {'y': 66.66666666666666,
'x': 45.83333333333333,
'width': 16.666666666666664,
'height': 33.33333333333333}})&lt;/LI-CODE&gt;
&lt;P&gt;6. Apply SetProperties method to the target sheet.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;query({
"jsonrpc": "2.0",
"id": 2,
"method": "SetProperties",
"handle": sh.handle,
"params": [target_sheet_properties['result']['qProp']]
})&lt;/LI-CODE&gt;
&lt;P&gt;If any master measures or master dimension are used in the object, you'll probably have to change their ID's before creating a child (step 2), since the same master measures can have different IDs in the target app.&lt;/P&gt;
&lt;P&gt;If you use Python, there is another way to copy objects or sheets using qsea package:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source_app.sheets['source_sheet'].copy(target_app)
source_app.sheets['source_sheet'].objects['source_object_id'].copy(target_app, target_sheet)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 21:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-table-in-a-sheet-using-Qlik-Sense-Engine-API/m-p/2479052#M21177</guid>
      <dc:creator>liuis</dc:creator>
      <dc:date>2024-09-01T21:21:12Z</dc:date>
    </item>
  </channel>
</rss>

