1 Reply Latest reply: Mar 27, 2018 12:52 PM by Erik Wetterberg RSS

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

    bob bob

      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

      })