Skip to content

Instantly share code, notes, and snippets.

@yianni-ververis
Created August 11, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yianni-ververis/fbbd484f7fc07646aaf1 to your computer and use it in GitHub Desktop.
Save yianni-ververis/fbbd484f7fc07646aaf1 to your computer and use it in GitHub Desktop.
var obj5 = {
"qInfo": {
"qId": "CB01",
"qType": "Combo"
},
"ListObject1": {
"qListObjectDef": {
"qDef": {
"qFieldDefs": [
"fullNameFL"
],
"qFieldLabels": [
"fullNameFL"
],
"qSortCriterias": [{
"qSortByAscii": -1
}]
},
"qInitialDataFetch": [{
"qTop": 0,
"qLeft": 0,
"qHeight": 100,
"qWidth": 2
}],
"qExpressions": [{
"qExpr": "=only([plrNum])"
}]
}
}
};
qApp.createSessionObject(obj5).then(function(list) {
app.qLog('qGetPlayers2', 'success!');
//List has been created and handle returned.
//Get the layout of the listobject.
// app.obj.playerList = list;
// Select our player
list.getLayout().then(function(layout) {
console.log(2);
// console.log(layout.qHyperCube.qDataPages[0].qMatrix);
console.log(layout);
console.log(layout.ListObject1.qListObject.qDataPages[0].qMatrix);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment