I´m using SmartGWT3.1 pro(build of Feb/12).
problem: DMI operation binding configured at DataSource is never triggered on fech operations.
I´ve followed the instrucions at pag-55 of Quick Start Guide. Defined a function to performe the fetch operation:
obs- it should have some specific logic (removed for this test purposes)
Properly configured the DynamicForm to use the FetchOperation ID = "fullFetch"
Then configured the redirection at DataSource:
At Eclipse Debug Console I can see that DSRequest has the identification of the DMI operation to use, as follows:
But I can also check that my function never gets triggered despite the fetch always happens (I believe it´s somehow using default fetch implementation).
Could you please check my implementation and let me know what I may be missing?
thanks
Conejo
problem: DMI operation binding configured at DataSource is never triggered on fech operations.
I´ve followed the instrucions at pag-55 of Quick Start Guide. Defined a function to performe the fetch operation:
Code:
@SuppressWarnings({ "rawtypes", "unchecked", "unused" })
public DSResponse fetchOrgao(DSRequest dsRequest) throws Exception {
DSResponse resp = dsRequest.execute();
return resp;
}
Properly configured the DynamicForm to use the FetchOperation ID = "fullFetch"
Code:
formOrgaos = new DynamicForm();
formOrgaos.setDataSource(DataSource.get("orgaos"));
formOrgaos.setFetchOperation("fullFetch");
formOrgaos.setDataFetchMode(FetchMode.LOCAL);
formOrgaos.setAutoFetchData(true);
Code:
<operationBinding operationType="fetch" operationId="fullFetch"> <serverObject className="net.techdesk.audespSRC.server.TabelaOrgao" methodName="fetchOrgao" /> </operationBinding>
Code:
=== 2013-03-18 23:53:12,874 [82-3] DEBUG RPCManager - Request #1 (DSRequest) payload: {
criteria:{
nome:"PREFEITURA MUNICIPAL DE BALBINOS"
},
operationConfig:{
dataSource:"orgaos",
operationType:"fetch"
},
componentId:"isc_DynamicForm_5",
appID:"builtinApplication",
operation:"fullFetch",
oldValues:{
nome:"PREFEITURA MUNICIPAL DE BALBINOS"
}
}
=== 2013-03-18 23:53:12,874 [82-3] INFO IDACall - Performing 1 operation(s)
Could you please check my implementation and let me know what I may be missing?
thanks
Conejo
Comment