| Version 7 (modified by mswertz, 6 months ago) |
|---|
Back to MolgenisLanguageGuide?
<form>
The <form> element is used to define a user element that shows the records of a certain entity on screen (including insert, update, save, search, etc). A form may have tabbed <menu> or un-tabbed <form> or <plugin> subscreens which are defined by nesting other user interface elements.
Example usage of <form> element:
<form name="myname" entity="myentity"> <form name="myname" entity="mysubentity"/> </form> <form name="myname" entity="myentity" viewtype="list" limit="10"/>
Required attributes
- name="name": locally unique name for this screen element (within its container).
- entity="myentity": which data entity will be loaded (i.e., points to a <entity name="myentity"/>).
Optional attributes
- label="Nice screen name": an user-friendly alias to show as form header (default: copied from name).
- viewtype="record" or viewtype="list": whether the form should start with a list or per-record (default: "record").
- limit="10": how many records must be shown in the list (default: "5").
- readonly="true": can the records be edited or is the form readonly (default: "false").
- compact_view="field1,field2": only show the selected fields on the form and have a 'show additional fields' button to expand to see all fields
- commands="package.Class1,package.Class2": optional extension point to add custom commands to the generated forms. See MolgenisCustomCommands?.
Child elements
Last modified by mswertz, 03/08/10 14:51:49 (6 months ago)
![(please configure the [header_logo] section in trac.ini)](http://gbic.target.rug.nl/trac/molgenis/chrome/site/molgenis_logo.jpg)