Hi,
I think this is a dumb question. But i cant figure out how to do this. I have a situation like below:
While loading page, i'm loading grid with datasource,GwtRpcDatasource. I have one form which when i click submit it is adding the record to grid and updating my backend xml. When i submitting the form it is calling executeAdd() method of DS where i need to check the one field value with the fields of all existing Records in the datasource.
For example, i've a grid having rows with name and status fields. When i submit form, i need check current record's 'name' vaue with the 'name' field value of all existing records. I'm unable to retrieve the existing data of datasource in executeAdd() method.
I tried with cacheAllData(true) in constructor of DS and retreiving records by calling getCacheData() in executeAdd() method. But i'm getting no records.
Please suggest me.
I think this is a dumb question. But i cant figure out how to do this. I have a situation like below:
While loading page, i'm loading grid with datasource,GwtRpcDatasource. I have one form which when i click submit it is adding the record to grid and updating my backend xml. When i submitting the form it is calling executeAdd() method of DS where i need to check the one field value with the fields of all existing Records in the datasource.
For example, i've a grid having rows with name and status fields. When i submit form, i need check current record's 'name' vaue with the 'name' field value of all existing records. I'm unable to retrieve the existing data of datasource in executeAdd() method.
I tried with cacheAllData(true) in constructor of DS and retreiving records by calling getCacheData() in executeAdd() method. But i'm getting no records.
Please suggest me.