Hi,
I'm getting a warning message
invoking ListGrid.fetchRelatedData () on a RestDataSource with the following code
At the end the slave grid shows the right data (just fetched), but the callback is NEVER actually called (i.e. I never see the "slave data retrieved" on the GWT log).
The Developer Console shows a SUCCESS status for the related request.
This prevent me to do some post-processing after the slave data arrived.
The datasources are defined as follows
What's wrong with my code?
At client side I'm using
SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
GWT 2.0.4
Firefox 3.6.9
at server side Grails 1.3.4
Kind regards
Davide
I'm getting a warning message
Code:
WARN:RestDataSource:dsSlave:matched tree relationship field by name: id
Code:
slaveGrid.fetchRelatedData (masterRecord, masterDataSource.getInstance (), new DSCallback() { @Override public void execute (DSResponse response, Object rawData, DSRequest request) { GWT.log ("slave data retrieved"); } }, new DSRequest ());
The Developer Console shows a SUCCESS status for the related request.
This prevent me to do some post-processing after the slave data arrived.
The datasources are defined as follows
Code:
//MASTER, having id "dsMaster" final DataSourceIntegerField dfId = new DataSourceIntegerField ("id", "Id"); dfId.setPrimaryKey(true); dfId.setHidden(true); final DataSourceTextField dfCode = new DataSourceTextField ("code"); dfName.setRequired (true); //other fields... setFields (dfId, dfCode, ...);
Code:
//SLAVE final DataSourceIntegerField pkField = new DataSourceIntegerField ("id"); pkField.setPrimaryKey (true); final DataSourceIntegerField masterIdField = new DataSourceIntegerField ("masterId"); masterIdField.setForeignKey ("dsMaster.id"); //other fields... setFields (pkField, masterIdField, ...);
At client side I'm using
SmartClient Version: 8.0/LGPL Development Only (built 2010-05-18)
GWT 2.0.4
Firefox 3.6.9
at server side Grails 1.3.4
Kind regards
Davide
Comment