4 Replies Latest reply: May 10, 2017 1:08 AM by praveena mundolimoole RSS

    CreateCube Callback called more than once

    praveena mundolimoole

      I am trying to call createCube method to get table with 6 rows and 2 columns. I am getting the data in the callback function without any issues. But for some reason the callback method is called more than once and its intermittent. Could someone please help on this?

       

      app.createCube({
                          "qInitialDataFetch": [
                             {
                                 "qHeight": 20,
                                 "qWidth": 2
                             }
                          ],
                          "qAlwaysFullyExpanded": true,
                          "qDimensions": [
                              {
                                  "qDef": {
                                      "qFieldDefs": [
                                          "_ProductDBFieldName"
                                      ]
                                  }
                              },
                              {
                                  "qDef": {
                                      "qFieldDefs": [
                                          "_ProductUIFieldName"
                                      ]
                                  }
                              }
                          ]
                      }, function (productReply) {                    
                          CreateCubeCallback(productReply.qHyperCube.qDataPages[0].qMatrix, true);
                          app.destroySessionObject(productReply.qInfo.qId);
                      });