<?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 Qlik Sense 2.1 Engine API; AddAlternateState method in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005331#M3923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding an alternate state to the document using the Qlik Engine API is pretty straight forward. I know the Alternate State exists and how one can use the alternate state in an expression using set analysis on the visualization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do we apply the Alternate State to a field object to be used as a filter?&lt;/STRONG&gt; If I can't apply an alternate state to a filter object, I can't use the filters within that Alternate state in the expression in my visualization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I use GetObject() and then SetProperties() using the qStateName: parameter set from the AddAlternateState method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resources for others:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/sense/2.1/en-US/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-AddAlternateState-method.htm"&gt;http://help.qlik.com/sense/2.1/en-US/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-AddAlternateState-method.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 00:03:13 GMT</pubDate>
    <dc:creator>balexbyrd</dc:creator>
    <dc:date>2015-09-23T00:03:13Z</dc:date>
    <item>
      <title>Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005331#M3923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding an alternate state to the document using the Qlik Engine API is pretty straight forward. I know the Alternate State exists and how one can use the alternate state in an expression using set analysis on the visualization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do we apply the Alternate State to a field object to be used as a filter?&lt;/STRONG&gt; If I can't apply an alternate state to a filter object, I can't use the filters within that Alternate state in the expression in my visualization objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I use GetObject() and then SetProperties() using the qStateName: parameter set from the AddAlternateState method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resources for others:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/sense/2.1/en-US/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-AddAlternateState-method.htm"&gt;http://help.qlik.com/sense/2.1/en-US/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-AddAlternateState-method.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 00:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005331#M3923</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-23T00:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005332#M3924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample using qsocks that will add a alternate state, then patch a list object to use that new state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14432756143934876 jive_text_macro" jivemacro_uid="_14432756143934876"&gt;
&lt;P&gt;var qsocks = require('qsocks')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;qsocks.Connect({appname: 'Sales Discovery.qvf'}).&lt;/P&gt;
&lt;P&gt;then(function(global) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return global.openDoc('Sales Discovery.qvf')&lt;/P&gt;
&lt;P&gt;})&lt;/P&gt;
&lt;P&gt;.then(function(app) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; app.addAlternateState('MyNewState').then(function() { &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return app.getObject('QEECN').then(function(object) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return object.applyPatches([{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qPath": '/qListObjectDef/qStateName',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qOp": 'add',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qValue": '"MyNewState"'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; })&lt;/P&gt;
&lt;P&gt;&amp;nbsp; .then(function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.doSave();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; })&lt;/P&gt;
&lt;P&gt;})&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or as a Gist if the syntax highlighting is a bit annoying here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/mindspank/cbd243cdf4ec15f365eb" style="font-size: 10pt; line-height: 1.5em;" title="https://gist.github.com/mindspank/cbd243cdf4ec15f365eb"&gt;https://gist.github.com/mindspank/cbd243cdf4ec15f365eb&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the end result, top Listbox is now in its own state&lt;/P&gt;&lt;P&gt;&lt;IMG alt="altstate.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100134_altstate.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2015 13:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005332#M3924</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-26T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005333#M3925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was walking through the logic in the Engine API Explorer and it didn't like the format of the parameters. Received a "Path value not on valid JSON format."&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="100144" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100144_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;My Alternate State exists;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="100169" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/100169_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking the documentation the qValue should have a \" infront of the string values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a bunch of different ways to pass the alternate state name and received errors every time. I don't know how you did the above &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; Maybe you have a demo you could attach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/sense/1.1/en-us/developer/Subsystems/Workbench/Content/BuildingExtensions/API/backendApi/applypatches-method.htm" title="http://help.qlik.com/sense/1.1/en-us/developer/Subsystems/Workbench/Content/BuildingExtensions/API/backendApi/applypatches-method.htm"&gt;applyPatches method&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 18:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005333#M3925</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-27T18:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005334#M3926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also tried using qsocks.bundle.js and it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100172_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;var config = {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; host: 'localhost',&amp;nbsp; // Server name&lt;/P&gt;
&lt;P&gt;&amp;nbsp; isSecure: false&amp;nbsp; //true on server&lt;/P&gt;
&lt;P&gt;};&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;function connect() {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qsocks.Connect().then(function(global) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // from the global handle we can invoke methods from the global class&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return global.openDoc('Demo.qvf')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(function(app) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // returns a app handle which we can invoke app methods on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.addAlternateState("MyNewState").then(function() {&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return app.getObject("GxUjhtd").then(function(object) {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return object.applyPatches([{&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qPath": '/qListObjectDef/qStateName',&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qOp": 'add',&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "qValue": '"MyNewState"'&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }])&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .then(function() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('All Done')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }) &lt;/P&gt;
&lt;P&gt;}; &lt;/P&gt;
&lt;P&gt;connect();&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 18:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005334#M3926</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-27T18:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005335#M3927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The \ is just to escape the double quotes.&lt;/P&gt;&lt;P&gt;You can see in my example that I'm using single quotes instead of escaping the double quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you altered the example I submitted, did you call the DoSave method?&lt;BR /&gt;Otherwise you are not saving the properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I'd also recommend the latest Help documentation instead of 1.1 as we added more examples in there, &lt;A href="https://help.qlik.com/sense/2.1/en-us/developer/Subsystems/EngineAPI/Content/Classes/GenericObjectClass/GenericObject-class-ApplyPatches-method.htm" title="https://help.qlik.com/sense/2.1/en-us/developer/Subsystems/EngineAPI/Content/Classes/GenericObjectClass/GenericObject-class-ApplyPatches-method.htm"&gt;https://help.qlik.com/sense/2.1/en-us/developer/Subsystems/EngineAPI/Content/Classes/GenericObjectClass/GenericObject-cl…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 19:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005335#M3927</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-27T19:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005336#M3928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know why this wouldn't work? I've tried every way I could think of to pass the qValue and I still get errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to attach a working demo with the full scripts/html you used? I can only get qsocks.bundle.js to run as I've had issues with using just straight require like you have. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100174_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 19:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005336#M3928</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-27T19:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005337#M3929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the qValue you should set is a string but since it's json you need to pass in the double qoutes so either pass in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"qValue": '"MyNewState"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"qValue": "\"MyNewState\""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second example the backslash is used to escape the double quote so it's parsed correctly as you send it to the engine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 19:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005337#M3929</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-27T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005338#M3930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is again the same script but running in a html file instead.&lt;/P&gt;&lt;P&gt;You should be able to run it straight from file:// just replace the appname with a app in your desktop and a Object ID for a listbox that exists in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="altstate.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100152_altstate.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2015 20:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005338#M3930</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-27T20:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005339#M3931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your continued replies and help. I'm about to give up trying to get this to work on qs desktop and try it on the server. It may also be a procedural issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I downloaded your test.html&lt;/P&gt;&lt;P&gt;2. I added a new screen to 'Sales Discovery' and added two new objects that were the same field "Channel Name" just like you have it.&lt;/P&gt;&lt;P&gt;3. I then found out one of the objects ID's and put that into the test.html script.&lt;/P&gt;&lt;P&gt;4. I then opened the test.html file in a browser and let the script run.&lt;/P&gt;&lt;P&gt;5. I then refreshed my Sales Discovery app using f5.&lt;/P&gt;&lt;P&gt;6. My filters are still on the same state. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/devil.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prior to this, I reinstalled QS to make sure it wasn't a bug on my end. How in the world are you getting this to work! Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 01:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005339#M3931</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-28T01:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005340#M3932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, that is strange. &lt;BR /&gt;I'm running Desktop also and rolled back to 2.1 just to be sure that it would work there also which it did. Also tried restarting my Desktop instance a few times just in case but it still works on my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to target a Filterpane with multiple fields in it? Because then the path will most likely be different.&lt;/P&gt;&lt;P&gt;If you can share the app you have been testing against I can try it on my end so we have the same IDs, just in case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 01:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005340#M3932</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-28T01:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005341#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, this is a good method to quickly find your object IDs without having to use the single configurator or mess with the APIs just to get a ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=EAmMsivBUAM" title="https://www.youtube.com/watch?v=EAmMsivBUAM"&gt;Shortcut for getting object IDs out of Qlik Sense - YouTube&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 01:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005341#M3933</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-28T01:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005342#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Files added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mind blown at that shortcut! Great stuff I'll be using this religiously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 06:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005342#M3934</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-29T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005343#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, now I see where the confusion comes from.&lt;/P&gt;&lt;P&gt;You are trying to set the filterpane object and not the listbox into a different alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense when you drag a field onto a sheet we create a filterpane object.&lt;/P&gt;&lt;P&gt;All the different fields that are shown in the filterpane are created as children to the filterpane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you target the path /qListObjectDef that definition does not exist since you are operating on the filterpane and not the listbox. You probably want to iterate over the filterpanes children and set all its listboxes into a different state. In this specific case the id you are looking for is YPpkPz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching a example that will print out the full property tree of the filterpane to the console just in case you want to look at the hierarchy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005343#M3935</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-09-30T00:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005344#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea if you can upload the example that would be great. I have yet to get it to work. Please also attach a working example if you could too, this could alleviate a lot of back and forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put the filterpane object into State Y, the field within that filterpane should inherit the state....or was that just QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also couldn't getobject '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YPpkPz&lt;/SPAN&gt;' as it returns null &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below setup and you can see that the rnmAEX object still gets selected. I guess this is bc my qPath is not correct? How would I include the filterpane in to this path?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="100541" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100541_Capture.PNG" style="height: 500px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005344#M3936</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-09-30T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005345#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was just QlikView, we don't cascade states in Qlik Sense.&lt;/P&gt;&lt;P&gt;Here is a sample that is working against the app you attached previously, Sales Discovery_ab.qvf&lt;/P&gt;&lt;P&gt;I haven't edited the app at all, just loaded it up using the script attached and refreshed the app after it ran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="altstate.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100567_altstate.PNG" style="height: 346px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 02:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005345#M3937</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-10-01T02:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005346#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for sticking with it. I noticed a few nuances in the code between what we were working with and your most recent upload. Seems like it liked this one better. Great job!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some goofiness with the selections in the second state not showing up but logically it makes sense and can be overcome. Can't thank you enough!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100804_Capture.PNG" style="height: 391px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 17:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005346#M3938</guid>
      <dc:creator>balexbyrd</dc:creator>
      <dc:date>2015-10-02T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005347#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, great that you got it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah the current selections bar shares the same behaviour as in QlikView, i.e it only shows the current selections which is the default state ($). It won't show the excluded state (1), previous selection ($-X) states or any other named alternative states that you add to your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: And this is why we love Qlik, at first glance it looks like a simple tool but underneath there is so much complexity going on it makes your mind boogle &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; PS. Don't even get me started on Selected Exluded... .DS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 18:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005347#M3939</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2015-10-02T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 2.1 Engine API; AddAlternateState method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005348#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also explain little more, where to place the script with in the app using engine api explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kranthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 10:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-2-1-Engine-API-AddAlternateState-method/m-p/1005348#M3940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T10:37:37Z</dc:date>
    </item>
  </channel>
</rss>

