Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
rsmithuchot1
Contributor
Contributor

Is there a way to write a call to the Qlik API to get a list of master items that are visualisaitons?

I have the object, in my properties.js definition for a qlik extension ->

  exportMasterItem: {

         type: "string",

         component: "dropdown",

         label: "Enter Object ID",

         ref: "chooseMasterExport",

         show: function (data, defs) {

               var def = __.find(defs.layout.props.actionItems, {

                          cId: data.cId

                         });

               return def &&  "exportGraphMasterItems" === def.actionType
            },

          options: [],
}

I want to be able to write some kind of function, that gets a list of the master items that are visualisaitons, is there a way to this using the qlik API. I tried this earlier in the code, just to get the objects and tried to print them out but it does not work:

    function GetMasterIcons(){

        var app = qlik.currApp();

            app.getList('MasterObjectList', function(reply){

            if (reply && reply.qAppObjectList) {

                var masterItems = reply.qAppObjectList.qItems;

                console.log(masterItems);

            } else {

                console.error('Failed to fetch Master Items.');

            }

        });

    }

Does anyone know how I could grab a list of the mater items?




Labels (4)
0 Replies