|
Hi, Hope someone can help with this one – I’m
fairly new to qooxdoo. I’m trying to use CPAINT v2.0.3 with QooXdoo
v0.5, however I’m stuck on getting the CPAINT returned data back into
qooxdoo. I’ve tested the CPAINT part and it returns data
ok. The CPAINT cp.call invokes the backend and returns
the xml result to my fill_QxListView function. Q: I would like the GACdata array (filled by
fill_QxListView) to become available within qooxdoo’s window.application.main
so that I can display it via a QxListView control – any suggestions on
how to achieve this? I guess I’m missing something fairly obvious. My code is as follows: ======================================= var GACdata = []; //global GACdata function fill_QxListView(resultset){ var rowsreturned =
resultset.firstChild.childNodes.length; var i; for (i=1;i < rowsreturned; i++) { GACdata.push({ GACName : {Text : {resultset.getElementsByTagName("Name").item(i).firstChild.nodeValue
}}); }; } window.application.main = function() { /* CPAINT section */ var cp = new cpaint(); cp.set_response_type('CUSTOM_XML'); cp.set_debug(false); cp.set_transfer_mode('get'); cp.call('/data/DBAccess_CPaint_GetData.php',
'ExecSQL', fill_QxListView, 'DBAccess_Members_All'); /* Qooxdoo section */ var c = { GACName : {label :
"Name", type : "text", width : 250,
sortable : true, sortProp : "text"} }; var g = new QxListView(GACdata, c); g.setBorder(QxBorderObject.presets.shadow); g.setBackgroundColor("white"); g.setWidth(300); g.setHeight(350); g.setLocation(20, 48); this.add(g); } Regards, Peter |
- [qooxdoo-devel] CPAINT and Qooxdoo Peter Hansen
- Re: [qooxdoo-devel] CPAINT and Qooxdoo Sebastian Werner
- RE: [qooxdoo-devel] CPAINT and Qooxdoo Peter Hansen
- Re: [qooxdoo-devel] CPAINT and Qooxdoo Sebastian Werner
- RE: [qooxdoo-devel] CPAINT and Qooxdoo Peter Hansen
- RE: [qooxdoo-devel] CPAINT and Qooxdoo Kent Olsson
- RE: [qooxdoo-devel] CPAINT and Qooxdoo Hugh Gibson
