I've got a datasource that I'm using to map a form to an object that extends another object. In my ds.xml, how do I include fields from the parent class? They have a public setter method in the parent class, and they appear to be named appropriately. On form submit (OperationType.ADD), the "add" method says "Unable to assign a required or optional argument to slot #1..."
For example:
Commenting out the "displayName" <field ... /> allows the object to be built correctly (without that value though), and the code enters my "add" method as expected with the (semi-)populated object as the param. Adding it back in yields the aforementioned error.
What am I missing here?
For example:
Code:
Class BudgetParent
String displayName
public void setDisplayName(String name) { ... }
Class Budget extends BudgetParent
Integer budgetAmount
Integer cpmRate
public void setBudgetAmount(Integer amount) { ... }
public void setCpmRate(Integer rate) { ... }
Datasource:
<DataSource ID="budgetsDS">
<fields>
<field name="budgetAmount" type="integer"/>
<field name="cpmRate" type="integer"/>
<field name="displayName" type="text"/>
...What am I missing here?