Created
August 11, 2015 19:26
-
-
Save yianni-ververis/fbbd484f7fc07646aaf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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