FormGroup

From GeoMedia Smart Client
Jump to: navigation, search
Settings WorkflowSetting FormSetting CommonSetting



The FormGroup element is used for the visual grouping of FormFields inside a form. The area on the left displays the name of the FormGroup and is used for the definition of FormFields; the area on the right can be used for further help text.


FormGroup


FormGroup-Attributes

Attribute Mandatory Description
name yes Unique name of the FormGroup within the Form (has to be written in UPPERCASE letters and must not contain any special characters).


 <FormGroup ... name="GENERAL" ... />
authorization no Only users with the appropriate Role/Claim are authorized to view/process the element.


 <FormGroup ... authorization="ROLE[ADMIN,EDITOR]" ... />
 <FormGroup ... authorization="CLAIM[WF_ADMIN,WF_EDIT]" ... />
editable no Boolean value which defines, if the form is editable:
  • editable="true"
  • editable="SCRIPT[...]"
  • editable="SESSION[KeyExists(...)]"
  • editable="SQL[...]"
  • editable="OBJECT[...]"


 <FormGroup ... editable="false" ... />
 <FormGroup ... editable="SCRIPT[...]" ... />
 <FormGroup ... editable="SESSION[KeyExists ({SESSION.SELECTION})]" ... />
 <FormGroup ... editable="SQL[SELECT CASE TYPE WHEN 'Normal' THEN 1 ELSE 0 END FROM TABLE1 WHERE ID={FORM.ID} ...]" ... />
 <FormGroup ... editable="SCRIPT[...]" ... />
help no Help text for the FormGroup.


 <FormGroup ... help="Use this FormGroup..." ... />
label no Label for the form displayed in Workflow-Form.


 <FormGroup ... label="General Data" ... />
template no Defines the layout template for the FormGroup section. The default template (not to be defined) is the template with the FormField section on the left and a Help section to the right (see the screenshot above).


 <FormGroup ... template="MyTemplate" ... />
visible no Defines the visibility of the FormGroup; the result has to deliver true or false. The visibility can be defined in a few ways:
  • visible="false"
  • visible="form[SESSION[KeyExists(...)]]"
  • visible="form[SCRIPT[...]]"
  • visible="form[SQL[...]]"
  • visible="hidden"
  • visible="form[OBJECT[...]]"


 <FormGroup ... visible="false" ... />
 <FormGroup ... visible="SESSION[KeyExists({SESSION.SELECTION})]" ... />
 <FormGroup ... visible="SCRIPT[classname.methodname(variable1, variable2, ...)]" ... />



Language: English