FormTab

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



The FormTab element is used for the definition of tab elements inside an HTML page. FormTabs group input forms with different aspects of a workflow so that the user can switch between these tabs to administer the data. Workflow-Actions (SAVE, DELETE, ...) are performed for all FormTabs together.


Formtab

If there is only one FormTab defined in the FormSettings.xml it doesn't get rendered. So that is the difference between the two figures above. In the first one there are more than one FormTabs defined and in the second one only one FormTab is defined.

FormTab-Attributes

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


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


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


 <FormTab ... editable="false" ... />
 <FormTab ... editable="hidden[SCRIPT[...]]" ... />
 <FormTab ... editable="form[SESSION[KeyExists ({SESSION.SELECTION})]]" ... />
 <FormTab ... editable="form[SQL[SELECT CASE TYPE WHEN 'Normal' THEN 1 ELSE 0 END FROM TABLE1 WHERE ID={FORM.ID} ...]]" ... />
 <FormTab ... editable="form[OBJECT[...]]" ... />
label no Label for the form displayed in Workflow-Form.


 <FormTab ... label="General Data" ... />
template no Defines the layout template for the FormTab-section.


 <FormTab ... template="MyFormTabTemplate" ... />
visible no Defines the visibility of the FormTab; the result has to deliver true or false. The visibility can be defined in a few ways:
  • visible="true"
  • visible="SCRIPT[...]"
  • visible="SESSION[KeyExists(...)]"
  • visible="SQL[...]"
  • visible="OBJECT[...]"
Blue.png This should only be used if NO dependency exists between FormFields in different Tabs.



 <FormTab ... visible="false" ... />
 <FormTab ... visible="SCRIPT[...]" ... />
 <FormTab ... visible="SESSION[KeyExists ({SESSION.SELECTION})]" ... />
 <FormTab ... visible="SQL[SELECT CASE TYPE WHEN 'Normal' THEN 1 ELSE 0 END FROM TABLE1 WHERE ID={FORM.ID} ...]" ... />
 <FormTab ... visible="OBJECT[...]" ... />



Language: English