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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How can I get value from promise without specifying callback function in the creatList method?

Hello, how can I get value from promise without specifying the callback function in the creatList method?

When I do like this I don't receive value in the callback...

var list = app.createList({

        "qFrequencyMode": "V",

        "qDef": {

                "qFieldDefs": [

                        "GroupName"

                ]

        },

        "qExpressions": [],

        "qInitialDataFetch": [

                {

                        "qHeight": 2000,

                        "qWidth": 1

                }

        ],

        "qLibraryId": null

    });


list.then(function(reply, app){

   //reply.qListObject is undefined

   //app is undefined

})

1 Reply
ErikWetterberg

Hi,

The promise resolves when the object is available on the client. After that data is fetched through getLayout. To get the data you can use the Validated event.

Erik Wetterberg