Hi,
Is there a possibility to define nested data sources without involving the server - so something like (if it would be in xml) this:
A Team with user members:
Where the Users are defined in another Datasource:
My question is how to define the team datasource ?
I started with that - but the nesting is not shown
DataSourceIntegerField userId = new DataSourceIntegerField("userId","User");
userId.setMultiple(true);
userId.setForeignKey("userDS.userid");
Is this way correct - and what is missing to get it run ?
br
johannes
Is there a possibility to define nested data sources without involving the server - so something like (if it would be in xml) this:
A Team with user members:
Code:
<List> <team> <name>Team1</name> <type>internalusers</type> <userid>11</userid> <userid>12</userid> <userid>13</userid> </team> <team> xxxxxx </team> </List>
Code:
<List> <user> <userid>11</userid> <firstname>xxxx</firstname> <lastname>yyyy</lastname> <enabled>true</enabled> </user> <user> <userid>12</userid> <firstname>xxx2</firstname> <lastname>yyy2</lastname> <enabled>true</enabled> </user> </List>
I started with that - but the nesting is not shown
DataSourceIntegerField userId = new DataSourceIntegerField("userId","User");
userId.setMultiple(true);
userId.setForeignKey("userDS.userid");
Is this way correct - and what is missing to get it run ?
br
johannes
Comment