I'm using a RestDataSource to populate data into a tree. The RestDataSource contains the field :
and it uses the DSDataFormat.XML.
what I receive as request in my servlet is :
As you can see the content of the tag <data></data> is the person DataSource with the foreign key to the gender DataSource.
Can anyone tell me what i should respond to this request : the people data or the gender data or both.
If for both, how I have to format the XML to be sent ?
Code:
DataSourceEnumField genderId = new DataSourceDynamicEnumField("gender.id",
ApplicationParameters.getInstance().getResource(
"personGenderId"), 2, true);
genderId.setForeignKey("genderDS.id");
what I receive as request in my servlet is :
Code:
<request>
<data>
<personDS>
<gender.id></gender.id>
</personDS>
</data>
<dataSource>personDS</dataSource>
<operationType>fetch</operationType>
<operationId>personDS_fetch</operationId>
<startRow></startRow>
<endRow></endRow>
<sortBy></sortBy>
<textMatchStyle></textMatchStyle>
<componentId>isc_OID_26</componentId>
<oldValues></oldValues>
</request>
Can anyone tell me what i should respond to this request : the people data or the gender data or both.
If for both, how I have to format the XML to be sent ?
Comment