0 Replies Latest reply: Oct 8, 2015 12:57 PM by Christophe Cornu RSS

    App undo/redo API question

    Christophe Cornu

      Hello:

       

      Any app developer who has come across the App.undo / redo API's? I'm wondering when to use / when not to use it.

       

      The engine api has an app.undo/redo global method.

      https://help.qlik.com/sense/2.1/en-us/developer/#../Subsystems/EngineAPI/Content/Classes/AppClass/App-class-Undo-method.htm%3FTocPath%3DQlik%2520Sense%2520APIs%2520and%2520SDKs%7CQlik%2520Engine%2520API%7CClasses%7CApp%2520class%7C_____107

       

      https://help.qlik.com/sense/2.1/en-us/developer/#../Subsystems/EngineAPI/Content/UndoAndRedo/undo-redo.htm%3FTocPath%3DQlik%2520Sense%2520APIs%2520and%2520SDKs%7CQlik%2520Engine%2520API%7CExamples%2520of%2520use%7CUndo%2520and%2520redo%7C_____3

       

      I'm providing some custom Qlik Sense UI editor (not a worksheet) and using the engine API. I'm storing the state in the app using my own generic object. The UI editor has some undo/redo capability. I'm wondering if I should leverage that global app Undo/Redo . Is that API just for the Qlik Sense worksheet editor?

       

      This is what I understand of that API:

      It is not scoped to a single generic object, it queues all generic object changes. It’s particularly suited for the Qlik Sense worksheet global undo/redo. I can add new work sheet objects, edit properties and undo/redo in order.

      Do my own generic objects persisted in the app become automatically part of that undo stack? Or does that stack only affect certain types of generic objects?

       

      Thanks for any tip with that API...

      Christophe