Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

include all fields from a related datasource: is it possible?

$
0
0
I've got two datasources A and B with a foreign key relationship between them, say that dataSource B contains:
Code:

<field name="fk" foreignKey="A.id" joinType="outer"/>
So in dataSource B I can include fields from dataSource A:
Code:

<field name="includedField" includeFrom="A.field1" includeVia="fk"/>
given that I need to include many (actually all) fields of dataSource A, is there a way to include them all, based on the fk relationship?

the documentation for DataSource.inheritsFrom says:
Code:

...
This feature can be used for:
...
- modeling relational database joins, and the equivalents in other systems

so at first I thought I could use it, but it doesn't works this way.

Viewing all articles
Browse latest Browse all 4756

Trending Articles