Skip to main content

Form

A form contains a set of input fields (called controls) to be filled by a user, in a structured way. A form must have a form type to be displayed and used in the UI. A form without a type can be called in another form.

Examples

The following example shows a form called Directory_UserRecord_View that involves resources from the entity type Directory_UserRecord to collect personal data and contract information via some structured fields to fill.

Code attributes enclosed with <> need to be replaced with a custom value before entering the script in the command line.

<Form Identifier="Directory_UserRecord_View" EntityType="Directory_UserRecord">
    <Control DisplayName_L1="Personal Data" OutputType="LayoutFieldset">        <Control DisplayName_L1="Full Name" OutputType="LayoutRowset">            <Control Binding="LastName" />            <Control Binding="FirstName" />        </Control>        <Control Binding="Mail" ColumnSize="8" />    </Control>    <Control DisplayName_L1="Contract" OutputType="LayoutFieldset">        <Control Binding="EmployeeId" />        <Control Binding="ContractStartDate" />        <Control Binding="ContractEndDate" />        ...
    </Control>
</Form>

Display settings

The display settings allow you to adjust the display.

Hide the "Access Permissions" tab

When HideRoles is set to true, then the Access Permissions tab is not accessible.

Access Permissions

Adjust the request type

When WorkflowRequestType is set to Self, then the finalization step looks like:

WorkflowRequestType = Self

When WorkflowRequestType is set to Helpdesk, then the finalization step looks like:

WorkflowRequestType = Helpdesk

Display records in a table

RecordTable Example

InputType display

The InputType represents the type of research property, attribute which supports only a predefined set of values listed below:

inputtypeattachment

  • Attachment — represents a control for adding an attachment

  • Auto — takes by default the type of the EntityType property

    inputtypecheckbox

  • Checkbox — a boolean control which supports one of the two states

    inputtypecombobox

  • Combobox — a dropdown which supports single selection

    inputtypecomboboxmultiselection

  • ComboboxMultiSelection — a dropdown which supports multiple selection

    inputtypedate

  • Date — Date control

  • Hidden — Hides the input

    inputtypeimage

  • Image - Control to show / upload image

  • Inherited —Control to get the InputType of the associated display entity property (when nothing is specified in a Control of a Form, it's the default value).

    inputtypepicker

  • Picker — Opens a grid to select a resource

    inputtypetext

  • Text — Displays a single-line of text

    inputtypetextarea

  • TextArea — A textbox which supports carriage return character.

Properties

PropertyTypeDescription
Activity optionalInt64Defines the linked activity template.
ActivityState optionalEnumerationDefines the linked activity state template.
AddRowLabel_L1 optionalStringDefines the "add row" button label when using WorkflowUpdateSeveralRecordsEntityForm.
EntityType requiredInt64Represents the linked entity type.
FormTitle_L1 optionalStringTitle of the form in language 1 (up to 16).
FormType default value: AutoFormTypeRepresents the linked form type.
HideRecordAddButton default value: falseBooleanTrue to hide the button used to add a new record.
HideRecordRemoveButton default value: falseBooleanTrue to hide the button used to remove an existing record.
HideRoles default value: falseBooleanTrue to hide the Access Permissions tab.
Identifier requiredStringUnique identifier of the form.
IsDefaultSelfForm default value: falseBooleanEntity type default self form.
IsDefaultViewForm default value: falseBooleanEntity type default view form.
IsDeleteForm default value: falseBooleanIs a delete form.
MainProperty optionalInt64Represents the form main property.
MainPropertyLabel_L1 optionalStringDefines the main property label text.
Menu optionalInt64Defines the linked menu item.
RecordEndProperty optionalInt64Defines the workflow end date property. If not specified, the property EndDate of the record entity type is considered as RecordEndProperty.
RecordFilter default value: CurrentAndFutureRecordFilterDefines the record display option. 0 - Current: shows current positions. 1 - CurrentAndFuture: shows current and future positions. Recommended. 2 - All: shows past, present and future positions. Not recommended for clarity issues.
RecordProperty optionalInt64Defines the workflow record property.
RecordSortProperty optionalInt64Defines the workflow sort property.
RecordStartProperty optionalInt64Defines the workflow start date property. If not specified, the property StartDate of the record entity type is considered as RecordStartProperty.
RecordTable optionalInt64Identifier of the display table to be used to display resources' records in a workflow.
RemoveRowLabel_L1 optionalStringDefines the "remove row" button label when using WorkflowUpdateSeveralRecordsEntityForm.
TableTitle_L1 optionalStringDefines the table title when using WorkflowUpdateSeveralRecordsEntityForm.
WorkflowRequestType default value: 0WorkflowRequestTypeType of the request of the related workflow. 0 - None. 1 - Self. 2 - Helpdesk. 3 - Administration.

Child Element: Control

A form control is an input field to be filled by a user. Controls can be inserted in other controls in order to display the form fields in a structured way.

Examples

The following example shows a form called Directory_UserRecord_View that collects first personal data via some controls, and then calls another form Workflow_Directory_User_AddRecord_Base to collect record information. In this example is a tree control which defines the relationships between a worker and their managers (N+1 to N+3). The aim is to display in the form (in the UI) the organization chart made of the worker and their managers.

Code attributes enclosed with <> need to be replaced with a custom value before entering the script in the command line.

<Form Identifier="Directory_UserRecord_View" EntityType="Directory_UserRecord">    <Control DisplayName_L1="Personal Data" OutputType="LayoutFieldset">        <Control DisplayName_L1="Full Name" OutputType="LayoutRowset">            <Control Binding="LastName" />            <Control Binding="FirstName" />        </Control>        <Control Binding="Mail" ColumnSize="8" />    </Control>    <Control DisplayName_L1="Contract" OutputType="TransformImport" EmbeddedForm="Workflow_Directory_User_AddRecord_Base" />    </Control>
    </Form>

Properties

PropertyTypeDescription
AddedMinutes optionalInt32Add minutes to the date field with this property. If the value is not defined, the default value is the one defined for the associated display entity property.
Binding optionalInt64Identifier of the binding property. NOTE: When displaying an organization chart, this binding is meant to represent the first manager level (N+1). In this case, it must be a mono-valued navigation.
Binding2 optionalInt64Identifier of the binding property used to represent the second manager level (N+2) in the organization chart. It must be a mono-valued navigation. Cannot be used when Binding is not defined.
Binding3 optionalInt64Identifier of the binding property used to represent the third manager level (N+3) in the organization chart. It must be a mono-valued navigation. Cannot be used when Binding2 is not defined.
ColumnSize optionalInt32Defines the control column size.
DefaultValueBinding optionalInt64Automatically sets the value in the control depending on this binding and the selected value in another corresponding picker. It's only available for controls with picker. For example: <Control Binding="Location" DefaultValueBinding="Organization.Manager.MainLocation" /> After a selection of an organization in another picker in the form, the field location will be automatically set by the main location of the manager of the selected organization.
DisplayName_L1 optionalStringDisplay name of the control in language 1 (up to 16).
DisplayTable optionalInt64Identifier of the table.
EmbeddedForm optionalInt64Identifier of the form to insert in the control. With this method, one form can be imported to several forms. Remember, it can be used only with OutputType set to TransformImport.
EntityType optionalInt64Represents the linked entity type.
ExtensionIdentifier optionalStringThis property is used to extend the Identity Manager UI.
FilterBinding1 optionalInt64Coupled with LinkedBinding1, it allows filtering on a list of items. FilterBinding1 defines the binding that determines the search value. Linked filters are only available for controls with the Picker InputType.
FilterBinding2 optionalInt64Coupled with LinkedBinding2, it allows filtering on a list of items. FilterBinding2 defines the binding that determines the search value. Linked filters are only available for controls with the PickerInputType.
HomonymEntityLink optionalInt64Defines the homonym form control.
InputType default value: InheritedEnumerationInput type of the control.
IsReadOnly optionalBooleanIs a read only form control.
IsRequired optionalBooleanIs a required form control.
LinkedBinding1 optionalInt64Coupled with FilterBinding1, it allows filtering on a list of items. LinkedBinding1 defines the binding on which the search will be carried out. Linked filters are only available for controls with the Picker InputType.
LinkedBinding2 optionalInt64Coupled with FilterBinding2, it allows filtering a list of items. LinkedBinding2 defines the binding on which the search will be carried out. Linked filters are only available for controls with the Picker InputType.
Name optionalStringIdentifies the control inside the Form. This is used for translation files when a control cannot be identified by its binding such as for FieldSet.
NavigationBinding optionalInt64Defines the binding of the resource on which the user will be redirected when he clicks on an element of a BasicCollection. If not defined, the one defined in DisplayEntityProperty is used.
OutputType default value: InheritedEnumerationOutput type of the control.
ParentControl optionalInt64Defines the parent form control.
PlaceHolderText_L1 optionalStringDefines the place holder text.
Tile optionalInt64Identifier of the tile.