Is there a way to have datasource xml file extend another datasource xml, similar to classes.
can this be acomplished by using foreign key in the datasource?
Thanks
can this be acomplished by using foreign key in the datasource?
Thanks
<DataSource ID="CustomerFacingService" inheritsFrom="ServiceType"> <fields> <field name="containedByCFS" title="Contained By CFS" type="text" foreignKey="CustomerFacingService.name" required="false" detail="false" canEdit="true"/> <field name="containsCFSList" title="Contains CFS List" type="text" foreignKey="CustomerFacingService.name" required="false" detail="true" canEdit="true" multiple="true"/> <field name="rfsList" title="Resource Facing Services" type="text" foreignKey="ResourceFacingService.name" required="false" detail="true" canEdit="true" multiple="true"/> <field name="product" title="Product Name" type="text" foreignKey="Product.name" required="false" detail="false" canEdit="true" multiple="false"/> </fields> </DataSource>
<DataSource ID="ServiceType"> <fields> <field name="hasStarted" title="Has Started" type="boolean"/> </fields> </DataSource>
<script src="sc/DataSourceLoader?dataSource=blah"</script>
java.lang.ClassCastException: com.isomorphic.datasource.BasicDataSource cannot be cast to com.isomorphic.sql.SQLDataSource at com.isomorphic.sql.SQLDataSource.getSequences(SQLDataSource.java:249) at com.isomorphic.sql.SQLValuesClause.getSQLStringForInsert(SQLValuesClause.java:142) at com.isomorphic.sql.SQLDataSource.getClausesContext(SQLDataSource.java:1393) at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:973) at com.isomorphic.sql.SQLDataSource.execute(SQLDataSource.java:193) at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:708) at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:665) at com.isomorphic.application.AppBase.execute(AppBase.java:498)
Comment