Hi there,
What I'm trying to achieve:
SelectItem (multiple-select of all music bands available) loads all records (music bands) from BandDS. Custom request on EventDS (below) loads only band assigned to one particular event. I plan to use this as "values" for SelectItem. (if there is some better way to achieve this please advice?).
Problem I'm facing:
I've got problem with custom request. It keeps the window open saying: "Contacting Server..." and does not close after it receives the response. Also DSCallback.execute() is never executed.
All works without this custom request. (please notice I run multiple requests simultaneously).
Thanks for help.
Matus
SmartGWT 2.2
Firefox 3.6.12
What I'm trying to achieve:
SelectItem (multiple-select of all music bands available) loads all records (music bands) from BandDS. Custom request on EventDS (below) loads only band assigned to one particular event. I plan to use this as "values" for SelectItem. (if there is some better way to achieve this please advice?).
Problem I'm facing:
I've got problem with custom request. It keeps the window open saying: "Contacting Server..." and does not close after it receives the response. Also DSCallback.execute() is never executed.
All works without this custom request. (please notice I run multiple requests simultaneously).
Thanks for help.
Matus
SmartGWT 2.2
Firefox 3.6.12
Code:
Record record = new Record(); record.setAttribute("id", id); EventDS.getInstance().performCustomOperation("bands", record, new DSCallback() { @Override public void execute(DSResponse response, Object rawData, DSRequest request) { //update values } }, new DSRequest()); Criteria liveCriteria = new Criteria("type", "LIVE"); liveCriteria.addCriteria(eventCriteria); streamLiveForm.fetchData(liveCriteria); Criteria archiveCriteria = new Criteria("type", "ARCHIVE"); archiveCriteria.addCriteria(eventCriteria); streamArchiveForm.fetchData(archiveCriteria); Criteria downlaodCriteria = new Criteria("type", "DOWNLOAD"); downlaodCriteria.addCriteria(eventCriteria); streamDownloadForm.fetchData(downlaodCriteria);
Comment