Hi
I use smartgwt 1.2 and gwt 1.7.0
I have two datasources PodmiotyDS (persons) and RachunkiDS(bank accounts). They are related by foreignkey in RachunkiDS
PodmiotyDS:
RachunkiDS:
when record is selected in grid bounded to PodmiotyDS I call fetchrelatedData method with datasource RachunkiDS
where:
The problem is when this happend request for data looks like this:
there is no related idPodm
in developer console I have found only this:
but I do not know what it means
I am stuck, do not know what am I doing wrong
I use smartgwt 1.2 and gwt 1.7.0
I have two datasources PodmiotyDS (persons) and RachunkiDS(bank accounts). They are related by foreignkey in RachunkiDS
PodmiotyDS:
Code:
DataSourceIntegerField pkIdPodm = new DataSourceIntegerField("idPodm", "Id Podmiotu" ); pkIdPodm.setPrimaryKey(true); pkIdPodm.setHidden(true); DataSourceTextField imie = new DataSourceTextField ("imie",myLocale.dsfPodmiotyName() ); imie.setRequired(true); DataSourceTextField nazwisko = new DataSourceTextField("nazwisko", myLocale.dsfPodmiotySurname()); nazwisko.setRequired(true); DataSourceDateTimeField dodane = new DataSourceDateTimeField("dodane",myLocale.dsfPodmiotyAdded());
Code:
DataSourceIntegerField pkidRachunku = new DataSourceIntegerField("idRachunku","Id Rach"); pkidRachunku.setHidden(true); pkidRachunku.setRequired(true); pkidRachunku.setPrimaryKey(true); DataSourceIntegerField fkIdPodm = new DataSourceIntegerField("idPodm","Id Podmiotu"); fkIdPodm.setHidden(true); fkIdPodm.setForeignKey("PodmiotyDS.idPodm"); DataSourceTextField nrRachunku = new DataSourceTextField("nrRachunku","nr Rachunku test wersji"); setFields(pkidRachunku,fkIdPodm,nrRachunku);
Code:
rachGrid.fetchRelatedData(event.getRecord(), rachunkids);
Code:
RachunkiDS rachunkids = RachunkiDS.getInstance();
Code:
<request> <data> <RachunkiDS /> </data> <dataSource>RachunkiDS</dataSource> <operationType>fetch</operationType> <operationId /> <startRow>0</startRow> <endRow>20</endRow> <sortBy /> <textMatchStyle>exact</textMatchStyle> <componentId>Lista_rach</componentId> <oldValues /> </request>
in developer console I have found only this:
Code:
01:01:09.328:WARN:RestDataSource:RachunkiDS:matched tree relationship field by name: idRachunku
I am stuck, do not know what am I doing wrong
Comment