Skip to main content

xSuite Helix - Help

Forms and scripts

Formulare_und_Skripte_1__Ebene_klein.png

Forms manage the display of work item index data.

Scripts are used to evaluate user interactions for configured forms, modify content in the form, and implement form functions.

You can use the drop-down list to filter for forms and scripts that are part of the workflow. You can also filter by type in each case, i.e. displaying only forms or scripts.

You can change the display using the form parameters and scripts. For more information, see Opening and editing forms and scripts, Creating a form and Creating a script.

Creating a script

Script option — Info view
  1. From the configuration menu, open the Forms and scripts window and click New.

  2. Select the option Script.

    ➣ The FormScript: Unnamed item window will open in the Info view (1).

    Formulare_und_Skripte_2__Ebene_Info_Neu_Script_Posnr.png
  3. Enter the technical name of the script (3).

    Notice

    The technical name comes prepended with cst_. This prefix cannot be deleted.

    Use the toggle button (3) to enable or disable the script as needed.

    Notice

    If you have added one or more usages, you can select the option Copy object in the action menu (2).

    Click the option Copy object to generate a copy of the form that is currently open. The copy will be identified with the suffix _Copy postpended to the name of the form.

  4. Save the script with the editable parameters or, if necessary, click the button Cancel (4) to discard the draft.

Script option – Design view
  1. Select the Script option.

    ➣ The FormScript: Unnamed item window will open in the Info view (1).

  2. Click the Design button (1) to toggle between views.

    ➣ The Design view will open.

    Formulare_und_Skripte_2__Ebene_Design_Neu_Script_Posnr.png
  3. Edit the script directly in the main pane (3) if necessary.

    To undo changes, use the Rueckgaengig_machen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png; to move one step forward in the editing process, use Wiederholen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png. The Format_2nd_level_forms_and_scripts_DE_und_EN_im_Text.png button indents the code according to the layers for better readability (3).

  4. Save the script with the editable parameters or, if necessary, click the Cancel button (4) to discard the draft.

    Notice

    When a minimum of one usage has been added to forms in the Info view, the the option Copy object will appear in the action menu (2).

    Click the option Copy object to create a copy of the script currently open. The copy will be identified with the suffix _Copy postpended to the name of the script.

Creating a form

Form option — Design view
  1. From the configuration menu, open the Forms and scripts window and click New.

  2. Select the option Form.

    ➣ The FormScript: Unnamed item window will open in the Design view (1).

    A preview of the form is offered on the right side of the screen (5).

    Formulare_und_Skripte_2__Ebene_Design_Neu_View_Posnr.png
  3. Make any necessary edits directly in the central window (4).

    Use the button Rueckgaengig_machen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png to undo changes; use Wiederholen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png to go one step forward in the editing process. The button Format_2nd_level_forms_and_scripts_DE_und_EN_im_Text.png indents the code by level for better readability (4).

    If necessary, drag and drop input or container elements from the Add item menu (3) to the script:

  4. Save the script with the editable parameters or, if necessary, click the Cancel button (4) to discard the draft.

    Notice

    When a minimum of one usage has been added to forms in the Info view, the the option Copy object will appear in the action menu (2).

    Click the option Copy object to generate a copy of the form that is currently open. The copy will be identified with the suffix _Copy postpended to the name of the form.

Form option — Info view
  1. Select the option Form.

    ➣ The FormScript: Unnamed item window will open in the Design view (1).

  2. Click the Info button (1) to switch the view.

    ➣ The Info view opens.

    Formulare_und_Skripte_2__Ebene_Info_Neu_View_Posnr.png
  3. Enter the technical name of the form (3).

    Notice

    The technical name comes prepended with cst_. This prefix cannot be deleted.

    Use the toggle button (3) to enable or disable the form as needed.

    Add scripts from the drop-down list (3) as needed.

    Notice

    If you have added one or more usages, you can select the option Copy object in the action menu (2).

    Click the option Copy object to generate a copy of the form that is currently open. The copy will be identified with the suffix _Copy postpended to the name of the form.

  4. Add usages to forms as needed using the Add button.

    ➣ The Edit usage dialog box will appear.

    Formulare_und_Skripte_2__Dialog_Info_Verwendung_bearbeiten_Posnr.png
  5. Enter the priority.

    The higher the priority, the higher the number entered must be (1).

  6. Use the toggle button (2) to enable or disable the usage as needed.

  7. Select a usage from the dropdown list or from Any (3).

  8. Enter a version number (4).

    If you select the option Workflows in Usages, the fields Workflow name and Node name (technical name of the workflow activity) will also appear. Fill out one or both of the fields, depending on what exactly you want to include in the list of usages.

  9. Use the button __Button.png to enter a new row in the table (5). The editable fields Name and Value will appear in the table.

    Edit the fields as needed. This will allow you add restrictions to form usage.

  10. Click OK to save the specifications in the dialog box or click Cancel to discard them.

  11. If necessary, edit listed usages by clicking the Bearbeiten_Button.png button at the end of the line.

    Formulare_und_Scripte_Neu_View_Info_2__Ebene_Verwendung_mit_Buttons_allgemein.png
  12. If necessary, delete existing usages by clicking the Loeschen_Button_im_Text.png button at the end of the line.

  13. Save the form with the editable parameters or, if necessary, click the button Cancel to discard the draft.

Opening and editing forms and scripts

Design view
  1. In Forms and scripts, select a form by ticking a check box in the line.

  2. Click Open.

    ➣ The Forms: {Form name} window or the FormScript: {Script name} window will open in the Design view (1).

    Formulare_und_Skripte_2__Ebene_Design_Bsp_VerifyForm_Kategorien_geschlossen_posnr.png

    Notice

    The screenshot only shows the editing options for a form in the Design view as an example. For more information on the editing options of a script in the Design view, see Creating a script.

  3. Make any changes to the code for the form/script directly as needed in the edit window (4).

    Use the button Rueckgaengig_machen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png to undo changes and the button Wiederholen_noch_DE_in_EN_2nd_level_forms_and_scripts_im_Text.png to move one step forward in the editing process.

    The button Format_2nd_level_forms_and_scripts_DE_und_EN_im_Text.png indents the code by level for better readability (4).

  4. If necessary, drag and drop the following input or container elements from the Add item menu (3) to the form:

    Input elements

    Name

    Description

    Text Field

    One-line text field.

    Text Area

    Multiline text field.

    LookupBox

    Drop-down list.

    LookupValueHelp

    F4 value help.

    DatePicker

    Date field with integrated calendar selection.

    Button

    Button to be named individually.

    Checkbox

    Check box.

    The user can click the user interface to activate or deactivate the check box later.

    Text

    Displayable text.

    The user can read the text but not edit it.

    Comments

    Space for comments.

    The button New comment opens a text field in the GUI, allowing the user to enter a comment.

    Protocol

    Automatic log.

    The log records who made what change to the work item, at what time.

    The user can track changes made.

    Container elements

    Name

    Description

    Panel

    Expandable area in an accordion (e.g. the secondary Workflows screen).

    Splitter

    Element dividing a container into two adjacent areas, separating them from each other by a visual boundary.

    Vbox

    Layout component arranging subcomponents vertically, allowing the list to continue in downward direction.

    HBox

    Layout component arranging subcomponents horizontally, continuing to the right.

  5. Check the appearance the form in the preview on the right side of the screen (5).

  6. Save the customized form/script under a new name or save an existing customized form/script under a new version number (6).

    Notice

    When a minimum of one usage has been added to forms in the Info view, the option Copy object will appear. With scripts, the option will appear as soon as you have opened them.

    To copy the form/script currently opened, click Copy object. The copy will be identified with the suffix _Copy postpended to the name of the form/script.

Info view
  1. In the tab Forms and scripts, select a list by clicking on the check box in the respective row.

  2. Click Open.

    ➣ The Forms: {Form name} window or the FormScript: {Script name} window will open in the Design view (1).

  3. Click the Info button (1) to switch the view.

    ➣ The Info view will open.

    Formulare_und_Skripte_2__Ebene_Info_Bsp_VerifyForm_posnr.png

    Notice

    The screenshot only shows the editing options for a form in the Info view as an example. For more information on the editing options for scripts in the Info view, see Creating a script.

    Notice

    When editing the forms and scripts, it is recommended that you edit the sys_ version. This will overwrite the standard version.

  4. Use the toggle button (3) to enable or disable the form/script as needed.

    Add scripts to forms as needed from the drop-down list; or delete existing scripts by clicking away the individual script entry (3) or removing the check mark for the entry in the drop-down list.

  5. Add usages to forms as needed using the Add button, or delete existing usageswith a click on the Loeschen_Button_im_Text.png button at the right end of the respective row (4).

    A usage indicates where the form will be used later.

    If you select the option Workflows in Usages, the fields Workflow name and Node name (technical name of the workflow activity) will also appear. Fill out one or both of the fields, depending on what exactly you want to include in the list of usages.

  6. Edit listed usages by clicking the Bearbeiten_Button.png button at the end of the respective row (4).

  7. Save the form/script with the editable parameters under a new name, or click Cancel (5) to discard all the changes as needed.

    Notice

    When a minimum of one usage has been added to forms in the Info view, the the option Copy object will appear. For scripts, the option will appear as soon as you have opened them.

    Click the option Copy object to create a copy of the form/script currently opened. The copy will be identified with the suffix _Copy postpended to the name of the form/script.