<?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: applyPatches invalid parameters in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/applyPatches-invalid-parameters/m-p/2013293#M17716</link>
    <description>&lt;P&gt;I managed to solve this by using vis.setOptions instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;app.visualization.get(vizID).then(viz =&amp;gt; {
    		viz.setOptions({orientation:"horizontal"});
			
		})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps applyPatches cannot be used for this purpose.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 16:03:08 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2022-12-06T16:03:08Z</dc:date>
    <item>
      <title>applyPatches invalid parameters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/applyPatches-invalid-parameters/m-p/2013200#M17714</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm getting an invalid parameter error when trying to use applyPatches on a barchart to change the orientation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current properties are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "qInfo": {
    "qId": "sBJftb",
    "qType": "barchart"
  },
...
  "orientation": "vertical",
  "scrollStartPos": 0,
...
 
  "visualization": "barchart",
  "masterVersion": 0.96
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I'm using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;app.visualization.get(vizID).then(viz =&amp;gt; {
			model=viz.model;
			model.applyPatches( [{
			  qPath: '/layout/orientation',
			  qOp: 'replace',
			  qValue: 'horizontal'
			}], false );
		})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried qPath without the 'layout'&amp;nbsp; and without the forward slashes, but I always get the same response.&amp;nbsp; Any ideas?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 14:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/applyPatches-invalid-parameters/m-p/2013200#M17714</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-12-06T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: applyPatches invalid parameters</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/applyPatches-invalid-parameters/m-p/2013293#M17716</link>
      <description>&lt;P&gt;I managed to solve this by using vis.setOptions instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;app.visualization.get(vizID).then(viz =&amp;gt; {
    		viz.setOptions({orientation:"horizontal"});
			
		})&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps applyPatches cannot be used for this purpose.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 16:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/applyPatches-invalid-parameters/m-p/2013293#M17716</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2022-12-06T16:03:08Z</dc:date>
    </item>
  </channel>
</rss>

