<?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 Re: Uploading/Publishing Qlik Objects to Hub through Enigma.js in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Uploading-Publishing-Qlik-Objects-to-Hub-through-Enigma-js/m-p/1999927#M82811</link>
    <description>&lt;P&gt;Are you trying to publish the entire app? Or is the app already published and you are trying to publish a sheet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must admit I'm not familiar with using enigma myself, but in the context of the Qlik Sense you publish Apps to the hub, and you publish sheets/bookmarks within the app to make them publish. Generally publishing a sheet will also publish every object on that sheet.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 07:19:56 GMT</pubDate>
    <dc:creator>Andrew_Delaney</dc:creator>
    <dc:date>2022-11-03T07:19:56Z</dc:date>
    <item>
      <title>Uploading/Publishing Qlik Objects to Hub through Enigma.js</title>
      <link>https://community.qlik.com/t5/App-Development/Uploading-Publishing-Qlik-Objects-to-Hub-through-Enigma-js/m-p/1997270#M82584</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;
&lt;DIV class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="74212777"&gt;
&lt;DIV class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" data-value="0"&gt;Hello,&lt;/DIV&gt;
&lt;BUTTON class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes="" aria-describedby="--stacks-s-tooltip-m7zt4p6b"&gt;&lt;/BUTTON&gt;&lt;BUTTON id="saves-btn-74212777" class="js-saves-btn s-btn s-btn__unset c-pointer py4" data-controller="s-tooltip" data-s-tooltip-placement="right" data-s-popover-placement="" aria-pressed="false" data-post-id="74212777" data-post-type-id="1" data-user-privilege-for-post-click="-1" aria-controls="" data-s-popover-auto-show="false" aria-describedby="--stacks-s-tooltip-t1kjkbla"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="s-prose js-post-body"&gt;
&lt;P&gt;I am currently trying to figure out a way to publish objects (charts/tables/variables/dimensions/etc) to the Qlik Hub from an application. I've been using Javascript, Enigma.js, and have been hosting the application on the same machine as the Qlik server as a mashup extension.&lt;/P&gt;
&lt;P&gt;I've noticed there is a method called createObject() in the Engima.js API for use upon Generic Objects in Qlik, but I have working, but only creates objects locally (in application memory, not persistent, not in the hub). If I try to call the publish() method on that object, I receive a 'Bad Request' error.&lt;/P&gt;
&lt;P&gt;This is the repo for Engima.js:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/qlik-oss/enigma.js" rel="nofollow noreferrer" target="_blank"&gt;https://github.com/qlik-oss/enigma.js&lt;/A&gt;. And the API schema:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/qlik-oss/enigma.js/blob/master/schemas/12.1477.0.json" rel="nofollow noreferrer" target="_blank"&gt;https://github.com/qlik-oss/enigma.js/blob/master/schemas/12.1477.0.json&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Pretty stuck, any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;
&lt;P&gt;I've tried using the createObject() method:&lt;/P&gt;
&lt;PRE class="lang-js s-code-block"&gt;&lt;CODE class="hljs language-javascript"&gt;&lt;SPAN class="hljs-string"&gt;"CreateObject"&lt;/SPAN&gt;: {
                &lt;SPAN class="hljs-string"&gt;"In"&lt;/SPAN&gt;: [{ &lt;SPAN class="hljs-string"&gt;"Name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"qProp"&lt;/SPAN&gt;,&lt;SPAN class="hljs-string"&gt;"DefaultValue"&lt;/SPAN&gt;: {&lt;SPAN class="hljs-string"&gt;"qInfo"&lt;/SPAN&gt;: {&lt;SPAN class="hljs-string"&gt;"qId"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;"qType"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;}, &lt;SPAN class="hljs-string"&gt;"qExtendsId"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;"qMetaDef"&lt;/SPAN&gt;: {}, &lt;SPAN class="hljs-string"&gt;"qStateName"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;""&lt;/SPAN&gt;} }],
                &lt;SPAN class="hljs-string"&gt;"Out"&lt;/SPAN&gt;: [{ &lt;SPAN class="hljs-string"&gt;"Name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"qInfo"&lt;/SPAN&gt; }]
            }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE&gt;in tandem with publish() which is for Generic Objects in Qlik:&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE class="lang-js s-code-block"&gt;&lt;CODE class="hljs language-javascript"&gt;&lt;SPAN class="hljs-string"&gt;"Publish"&lt;/SPAN&gt;: {
                &lt;SPAN class="hljs-string"&gt;"In"&lt;/SPAN&gt;: [],
                &lt;SPAN class="hljs-string"&gt;"Out"&lt;/SPAN&gt;: []
            }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But receive a Bad Request error.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Oct 2022 18:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Uploading-Publishing-Qlik-Objects-to-Hub-through-Enigma-js/m-p/1997270#M82584</guid>
      <dc:creator>mklaczak</dc:creator>
      <dc:date>2022-10-26T18:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading/Publishing Qlik Objects to Hub through Enigma.js</title>
      <link>https://community.qlik.com/t5/App-Development/Uploading-Publishing-Qlik-Objects-to-Hub-through-Enigma-js/m-p/1999927#M82811</link>
      <description>&lt;P&gt;Are you trying to publish the entire app? Or is the app already published and you are trying to publish a sheet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must admit I'm not familiar with using enigma myself, but in the context of the Qlik Sense you publish Apps to the hub, and you publish sheets/bookmarks within the app to make them publish. Generally publishing a sheet will also publish every object on that sheet.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 07:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Uploading-Publishing-Qlik-Objects-to-Hub-through-Enigma-js/m-p/1999927#M82811</guid>
      <dc:creator>Andrew_Delaney</dc:creator>
      <dc:date>2022-11-03T07:19:56Z</dc:date>
    </item>
  </channel>
</rss>

