<?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 Embedding a Qlik Sense button object leads to “c.children.forEach is not a function” error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Embedding-a-Qlik-Sense-button-object-leads-to-c-children-forEach/m-p/2516626#M22170</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a web-application (Angular + TypeScript) that embeds Qlik Sense visualizations through the Capability API. Embedding tables and filter panes works, but now I need to embed a Qlik Sense button object (specifically something like sn-action-button).&lt;/P&gt;&lt;P&gt;However, when I include the button’s object ID in my page, I get the following error:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;TypeError: c.children.forEach is not a function&lt;BR /&gt;createLabelAndIcon sn-action-button.25e8c45d9f118c132af2.js:formatted:3002&lt;BR /&gt;s sn-action-button.25e8c45d9f118c132af2.js:formatted:5510&lt;BR /&gt;component sn-action-button.25e8c45d9f118c132af2.js:formatted:5634&lt;BR /&gt;BM stardust.js:133&lt;BR /&gt;render stardust.js:133&lt;BR /&gt;paint 3219.40346c9d07149083d98e.js:2&lt;BR /&gt;Et 3219.40346c9d07149083d98e.js:2&lt;BR /&gt;f require.js:2&lt;BR /&gt;…&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;The moment I remove the button from view, the error disappears. Also, when the button is in place but I click it, nothing happens: it doesn’t perform the intended selection or apply anything in the alternative state.&lt;/P&gt;&lt;P&gt;Here’s what I’m doing in the Angular component:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Template:&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;lt;div [id]="id"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Component:&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;ngOnInit() {&lt;BR /&gt;this.qlikService.getQlikApp().pipe(&lt;BR /&gt;switchMap(app =&amp;gt; app.getObject(this.id, this.objectId!)),&lt;BR /&gt;tap(() =&amp;gt; this.loaded = true)&lt;BR /&gt;).subscribe();&lt;BR /&gt;}&lt;BR /&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I followed the official docs here:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/getObject-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/getObject-method.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;• Is there a known issue that prevents the sn-action-button (or some button object) from being embedded the same way as other Qlik Sense elements?&lt;BR /&gt;• Are there extra steps needed (e.g., importing the extension from Qlik? Some extra script or resource necessary outside the standard approach for getObject)?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions or guidance!&lt;BR /&gt;&lt;BR /&gt;Qlik Sense, API, Capability API, capability, capabilityapi, Error, sn-action-button, Embedding, Error, ButtonObject, typescript, angular&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 08:43:56 GMT</pubDate>
    <dc:creator>matiasj</dc:creator>
    <dc:date>2025-05-05T08:43:56Z</dc:date>
    <item>
      <title>Embedding a Qlik Sense button object leads to “c.children.forEach is not a function” error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Embedding-a-Qlik-Sense-button-object-leads-to-c-children-forEach/m-p/2516626#M22170</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a web-application (Angular + TypeScript) that embeds Qlik Sense visualizations through the Capability API. Embedding tables and filter panes works, but now I need to embed a Qlik Sense button object (specifically something like sn-action-button).&lt;/P&gt;&lt;P&gt;However, when I include the button’s object ID in my page, I get the following error:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;TypeError: c.children.forEach is not a function&lt;BR /&gt;createLabelAndIcon sn-action-button.25e8c45d9f118c132af2.js:formatted:3002&lt;BR /&gt;s sn-action-button.25e8c45d9f118c132af2.js:formatted:5510&lt;BR /&gt;component sn-action-button.25e8c45d9f118c132af2.js:formatted:5634&lt;BR /&gt;BM stardust.js:133&lt;BR /&gt;render stardust.js:133&lt;BR /&gt;paint 3219.40346c9d07149083d98e.js:2&lt;BR /&gt;Et 3219.40346c9d07149083d98e.js:2&lt;BR /&gt;f require.js:2&lt;BR /&gt;…&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;The moment I remove the button from view, the error disappears. Also, when the button is in place but I click it, nothing happens: it doesn’t perform the intended selection or apply anything in the alternative state.&lt;/P&gt;&lt;P&gt;Here’s what I’m doing in the Angular component:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Template:&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;lt;div [id]="id"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;BR /&gt;Component:&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;ngOnInit() {&lt;BR /&gt;this.qlikService.getQlikApp().pipe(&lt;BR /&gt;switchMap(app =&amp;gt; app.getObject(this.id, this.objectId!)),&lt;BR /&gt;tap(() =&amp;gt; this.loaded = true)&lt;BR /&gt;).subscribe();&lt;BR /&gt;}&lt;BR /&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I followed the official docs here:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/getObject-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/AppAPI/getObject-method.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;• Is there a known issue that prevents the sn-action-button (or some button object) from being embedded the same way as other Qlik Sense elements?&lt;BR /&gt;• Are there extra steps needed (e.g., importing the extension from Qlik? Some extra script or resource necessary outside the standard approach for getObject)?&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions or guidance!&lt;BR /&gt;&lt;BR /&gt;Qlik Sense, API, Capability API, capability, capabilityapi, Error, sn-action-button, Embedding, Error, ButtonObject, typescript, angular&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 08:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Embedding-a-Qlik-Sense-button-object-leads-to-c-children-forEach/m-p/2516626#M22170</guid>
      <dc:creator>matiasj</dc:creator>
      <dc:date>2025-05-05T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding a Qlik Sense button object leads to “c.children.forEach is not a function” error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Embedding-a-Qlik-Sense-button-object-leads-to-c-children-forEach/m-p/2516954#M22185</link>
      <description>&lt;P&gt;This error occurred because the label of the embedded button was too long and didn't fit in the container.&lt;/P&gt;&lt;P&gt;Solution was to make the web-applications container element for the button wider. Other possible solution is to make the button label text shorter.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 10:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Embedding-a-Qlik-Sense-button-object-leads-to-c-children-forEach/m-p/2516954#M22185</guid>
      <dc:creator>matiasj</dc:creator>
      <dc:date>2025-05-07T10:18:34Z</dc:date>
    </item>
  </channel>
</rss>

