The form and grid panel definitions in view 2.0 format have been simplified:
View 1.0 format | View 2.0 format |
---|---|
<panel type="form">
<title>Employee</title> <afmAction id="save"> <title>Save</save> <command type="saveForm"/> </afmAction> <fields> <field table="em" name="em_id"/> <field table="em" name="em_std"/> </fields> </panel> | <panel type="form">
<title>Employee</title> <action id="save"> <title>Save</save> <command type="saveForm"/> </action> <field table="em" name="em_id"/> <field table="em" name="em_std"/> </panel> |
The sort order element has been moved from the dataSource to the panel level. If the sort order direction is not specified, it defaults to ascending="true"
. The sort field may be specified in the dataSource. However, in this case, the sort order is permanent and the user will not be able to change the sort order using grid controls.
View 1.0 format | View 2.0 format |
---|---|
<panel type="grid"> <title>Employees</title> <sortField name="em_id" table="em"/> <field table="em" name="em_id"/> <field table="em" name="em_std"/> </panel> |