Hi
example:
base.ds.xml
a.ds.xml
b.ds.xml
"foo" field definition is in base and I don't need to duplicate it again in child datasource. I only added property (required) that differs in child datasources.
I was thinking about creating singleton in java, where I could additionally call setRequired(true/false) on foo field, but I was wondering if you don't have some better approach how to do it just with xml descriptors.
Thanks
Matus
example:
base.ds.xml
Code:
<DataSource ID="base">
<fields>
<field name="foo" type="text" ...>
<validators> ...
</field>
<fields>
</DataSource>Code:
<DataSource ID="a" inheritsFrom="base">
<fields>
<field name="foo" required="true"/>
<fields>
</DataSource>Code:
<DataSource ID="b" inheritsFrom="base">
<fields>
<field name="foo" required="false"/>
<fields>
</DataSource>I was thinking about creating singleton in java, where I could additionally call setRequired(true/false) on foo field, but I was wondering if you don't have some better approach how to do it just with xml descriptors.
Thanks
Matus