Editors

Some of the editors described here are only available in Expert mode. You can find out how to enable this mode here.

The corresponding, sufficient programming knowhow is required to use scripts and formulae in Intrexx. Please note that United Planet is not liable for errors, loss of data or security flaws that arise as a result of incorrect entries in the editors.

1. Stylesheet editor


This editor is available here:
Design module Edit menu / Edit stylesheet



The CSS of the layout can be modified in the stylesheet editor. The changes will be applied by clicking on "OK" and take effect when the layout is published.

"Edit" and "View"

Click here for more information about these menus in the editor.

2. JavaScript editor


This editor is available here:
Applications module Edit menu / Edit script or Workspace / F12 key
Applications module Element/Page properties "Script" tab



With the JavaScript editor, you can expand the functionality of applications. The script defined here is saved when you click on OK. Afterwards, the script can be assigned to an event. Once the sript has been published and the event occurs, for example through a user action in the browser, the script is executed.

2.1. "Edit" menu

The "Edit" menu in the editor provides the following functions. More information about the functions not described is available here.

Insert




Displays a list of all edit and view elements on the current page at the current cursor position. If text is highlighted, it will be replaced by the insertion. The list of elements can also be accessed by right-clicking at the desired position in the editor workspace. Select the element that is to be used in the script. The following programming code will then be inserted into the script editor automatically:
getElement("GUID of element")
Create your references to the HTML object with the syntax
var NameOfElement = getElement("GUID of element");

Comment/Uncomment block

Inserts the characters "//" at the current cursor position in the editor.

Search in library

Jumps to the search field on the "Libraries" tab.

Search function

Jumps to the search field on the "Functions" tab.

Insert JSDoc




Opens a list of JSDoc tags at the current cursor position. JSDoc is intended to document functions. The following JSDoc tags are supported: Select the desired tag and place it in a comment block. If you select "New JSDoc comment block", a multi-line comment block will be added with tags for the author, description and version.



If a function, which contains JSDoc tags, is selected on the "Functions" tab, the corresponding information is displayed at the bottom right.

2.2. "View" menu

Click here for more information about this editor menu.

2.3. "Functions" tab




The current functions defined in the current JavaScript are listed here.

Search

You can search for functions here. Reset filter
Click on this button to reset the search field.

Sort
Changes the alphabetical sorting of the function names between ascending and descending.

Link with editor
The cursor is moved to the beginning of the currently selected function.

Documentation

If JSDocs have been defined for the function, they will be shown here.

2.4. "Application structure" tab

Clickhere for more information.

2.5. "Libraries" tab

Click here for more information.

3. Groovy script editor


This editor is available here:
Integration module Data transfer or General settings / Data source or Target: Groovy script
Processes module Groovy script event handler or Groovy script condition or Groovy script action "Script" tab
Applications module Application properties or Page properties "Handler" tab / Add handler definition Handler definition / Add method Groovy file manager / Edit file



With the Groovy script editor, you can expand the functionality of Intrexx. The script defined here is saved when you click on OK and then executed at the corresponding point in processes, applications or in a data transfer.

3.1. "Edit" menu

The "Edit" menu in the editor provides the following functions. More information about the functions not described is available here.

Comment/Uncomment block

Inserts the characters "//" at the current cursor position in the editor.

Search in library

Jumps to the search field on the "Libraries" tab.

File history

Opens a dialog where you can access the versioning of the Groovy script file.

3.2. "View" menu

Click here for more information about this editor menu.

3.3. "Application structure" tab

Clickhere for more information.

3.4. "Libraries" tab

Click here for more information.

4. Velocity editor


This editor is available here:
Processes module Email action General properties / Click on "Next" "Content" tab / Select "Generate message from Velocity code" / Edit Velocity code
Applications module Edit menu / Edit script
Applications module VTL Include element Properties "Settings" tab / Select Velocity file Velocity file manager / Edit Velocity file
Applications module View table Properties "Options" tab / Select "Display file export" / Edit Button properties / "General" tab / Export / Edit user-defined template Template properties / General / Select Velocity file Velocity file manager / Edit Velocity file
Applications module File selection Properties "General" tab / Select "Custom view" tab / Select Velocity file Select Velocity file / Refer to Velocity file from the application package / Select Velocity file Velocity file manager / Velocity-Datei bearbeiten
Applications module Conditional display / Edit condition



With the Velocity editor, you can expand the functionality of Intrexx. The script defined here is saved when you click on OK and then executed at the corresponding point in applications.

4.1. "Edit" menu

The "Edit" menu in the editor provides the following functions. More information about the functions not described is available here.

Comment/Uncomment block

Inserts the characters "//" at the current cursor position in the editor.

Search in library

Jumps to the search field on the "Libraries" tab.

4.2. "View" menu

Click here for more information about this editor menu.

4.3. "Application structure" tab

Clickhere for more information.

4.4. "Libraries" tab

Click here for more information.

5. Formula editor


This editor is available here:
Applications module Calculation "General" tab / Edit formula
Applications module View table Properties Data tab / Edit total calculation Total calculation / Add control / Select "Calculation" / Edit control "General" tab / Edit formula



Calculations can be performed with this editor and the result is displayed in the corresponding element.

5.1. "Edit" menu

The "Edit" menu in the editor provides the following functions. More information about the functions not described is available here.

Insert value




Displays all application objects that can provide the script with a value. When you select an object, its GUID will be added to the editor at the current cursor position.

Use auto completion




Formulae can be selected in a tooltip here. If, for example, you have entered the term "sum" in the editor and use this menu, formulae that begin with "sum" will be suggested. If a parameter keyword is selected in a formula, the context menu is filtered by the respective parameter type. Click here for more information.

Show meta data




If a GUID or a control name is selected in the script, you can view more information about this in a tooltip - provided the GUID or control name is known.

Search in library

Jumps to the search field on the "Libraries" tab.

5.2. "View" menu

Click here for more information about this editor menu.

5.3. "Libraries" tab

Click here for more information.

6. XML editor

Click here for more information about this editor.

7. Filter editor

Click here for more information about this editor.

8. Libraries




The following editors have this tab: User-defined libraries can also be created here for each script language and for formulae. The Intrexx standard libraries (included with Intrexx) provide many useful functions. You can search through the libraries at the top of the area.

Reset filter
Click on this button to clear the search field.

8.2. Insert libraries

8.2.1. Context menu: "New / Insert library"




You can create any number of user-defined libraries. Select the top entry "Libraries", right-click on it and select "New / Insert library" to create a user-defined library. This opens a dialog where the library can be provided with a name. Once you confirm this dialog with "OK", an additional dialog will open where the library can be provided with a description and a link to relevant online content. The library is created when you click on "OK".



The underlying file will be saved on the client and is not removed by an Intrexx update. Normally, the files can be found in the following directories: If it was installed on a Windows computer within C:\Program Files, the files of the default Intrexx instance can be found in the following directories: If it was installed on a Windows computer within C:\Program Files, the files of a custom Intrexx instance can be found in the following directories:

8.2.2. Context menu: "New / Insert category"




If you select your new library, you can create new categories with this context menu item to help structure your library content. A dialog will open where the category can be provided with a title, description and a link to relevant online content. The category is created when you click on "OK".

8.2.3. Context menu: "New / Insert template"




Opens a dialog where the function, which you want to add to your library category, can be entered and saved as a template.

8.3. Additional functions in the context menu




Edit
Opens the properties dialog of custom libraries, categories or templates, if these are selected on the "Libraries" tab.

Copy / Paste / Delete
Custom libraries, categories and templates are copied, pasted or deleted, respectively. Content in Intrexx standard libraries can only be copied.

Show description
Shows the description of the element currently selected.

Open link
Opens the target page that is specified as the element currently selected.

Sort by name
Sorts custom libraries, categories or templates by name.

Expand all / Collapse all
Expands/collapses all subordinate elements.

Export / Import library
Exports the library as an XML file / Imports a previously exported library.

Insert into script
Inserts the currently selected funtion into the script at the cursor's current position. Details
If a library is selected, this option opens a dialog that displays the name and path to the script file. If a custom library, category or template has been selected, the following buttons are available at the bottom of the dialog:

Link
Opens the website, that is specified as the link, in the browser.

Edit
Opens the properties dialog of the currently selected element.

Show description
Displays the description of the currently selected element.

The Intrexx standard library cannot be modified. Therefore, the properties dialog for editing the title, description and link of library elements is not available.

Creating, editing, deleting and importing custom libraries is deactivated if the current user does not have write access to the corresponding folder that contains the library.

9. Application structure




On this tab, the application structure will be represented. If an element is highlighted in the tree structure, the area below will show various properties, like the GUID or name of the element. By clicking on the symbol, the corresponding value will be inserted in the script.

10. "Edit" menu

Save intermediately

The code will be saved locally with this command. If the editor is closed with "Cancel", all changes that have been cached will be applied.

Undo

Undo the most recent step while editing the script.

Redo

Repeats the most recent action.

Search

Opens a dialog where expressions can be searched for and replaced in the script.

Delete line

Deletes the line where the cursor is located from the script.

Go to line

Opens a dialog where a line number can be entered for selection in the editor.

Syntax check

The syntax check identifies incomplete pairs of parentheses and other potential errors in the script.

Remove trailing space on exit

If this command is activated, extra spaces and tabs at the ends of lines script will be deleted when you exit the editor.

11. "View" menu

Show functions

Shows or hides the "Functions" tab.

Show libraries

Shows or hides the "Libraries" tab.

Show application structure

Shows or hides the "Application structure" tab.

Restore default view

Restores the original view of the editor, after the Portal Manager has been restarted.

Full screen

Maximizes the editor.

Options

Opens a dialog where the font type and size can be defined.

12. JavaScript and Groovy editor: Set markers




When opening an application or process, JavaScript and Groovy will be searched through for comments that contain the character string //FIXME or //TODO. The expressions FIXME and TODO have to be placed directly after the comment string //. The symbols for //FIXME and //TODO comments are also shown to the left of the corresponding line in the editor.



Hits of //FIXME comments will be noted in the Problems area with this icon in the left-hand column in the editor. Hits of //FIXME comments will be noted with this icon. If you double-click on a hit, the editor will open.

13. Status line




In the status line the number of tasks and the line of the first task will be shown.

14. Integrate external editors

Click here to discover how to integrate external editors and use them instead of the Intrexx editors.