Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Custom DataSource request keeps "Contacting Server..." modal window open

    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

    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);
    Last edited by matuszemi; 4 Nov 2010, 04:43.

    #2
    did you find a solution?
    I'm having the same problem myself.

    Comment

    Working...
    X