17 Replies Latest reply: Oct 3, 2017 6:51 AM by Kranthi Kumar Bhattu RSS

    Qlik Sense 2.1 Engine API; AddAlternateState method

    Alex Byrd

      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.

       

      How do we apply the Alternate State to a field object to be used as a filter? 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.

       

      Do I use GetObject() and then SetProperties() using the qStateName: parameter set from the AddAlternateState method?

       

      Any help?

       

      Regards,

      Alex

       

      Resources for others:

      http://help.qlik.com/sense/2.1/en-US/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-AddAlternateState-method.htm