APL Code Editor Assistance(3.0)
In the code area of the APL Code Editor, the different parts of the code are color coded according to type, for easier identification. When you right-click in the code area, a context sensitive popup menu APL Code Editor Assistance appears, enabling easy access to the most common actions that you might want to perform. Code completion provides proposals when requested to help you write APL code. These features are described below.
Code Definition
The text is color coded according to the following definitions:
Brown  - Strings
Blue - Functions
Cyan  - Own (user defined) functions
Green  - Types
Purple  - Keywords
Orange - Comments
Hint!
To refresh the text pressÂ
.Right-click Menu
The right-click menu has the following options:
Option | Description |
---|---|
Font Size | Sets the font size. |
Cut | Moves the selected text to the clipboard. You can also press the |
Copy | Copies the selected text to the clipboard. You can also press the |
Paste | Pastes the contents of the clipboard into the place where the insertion point has been set. You can also press the |
Select All | Selects all the text. You can also press the |
Undo | Undoes your last action. You can also press the |
Redo | Redoes the last action that you undid with Undo. You can also press the |
Find/Replace... | Displays a dialog where chosen text may be searched for and, optionally, replaced. You can also press the |
Quick Find | Searches the code for the highlighted text. You can also press the |
Find Again | Repeats the search for last entered text in the Find/Replace dialog. You can also press the |
Go to Line... | Opens the Go to Line dialog where you can enter which line in the code you want to go to. Click OK and you will be redirected to the entered line. You can also press the CTRL+L keys to perform this action. |
Toggle Line Numbers | Adds or removes the line numbering. You can also press the CTRL+F2 keys to perform this action. |
Show Definition | If you right click on a function in the code that has been defined somewhere else and select this option, you will be redirected to where the function has been defined. If the function has been defined within the same configuration, you will simply jump to the line where the function is defined. If the function has been defined in another configuration, the configuration will be opened and you will jump directly to the line where the function has been defined. You can also click on a function and press the Note! If you have references to an external function with the same name as a function within the current code, some problems may occur. The Show Definition option will point to the function within the current code, while the external function is the one that will be called during workflow execution. |
If you right click on a function where it is defined in the code and select this option, a dialog called Usage Viewer will open and display a list of the Configurations that are using the function. You can also select a function and press the | |
UDR Assistance... | Opens the UDR Internal Format Browser from which the UDR Fields may be inserted into the code area. You can also press the |
MIM Assistance... | Open the MIM Browser from which the available MIM Resources may be inserted into the code area. You can also press the Note! This option is only available if you entering APL code in an Analysis or an Aggregation agent configuration. |
Imports the contents from an external text file into the editor. Note that the file has to reside on the host where the client is running. | |
Exports the current contents into a new file to, for instance, allow editing in another text editor or usage in another system. | |
APL Help... | This option currently does not work. |
APL Code Completion | Performs code completion on the current line. For more information about Code Completion, see the section below, APL Code Completion. You can also press the |
Indent | Adjusts the indentation of the code to make it more readable. You can also press the |
Jump to Pair | Moves the cursor to the matching parenthesis or bracket. You can also press the |
Toggle Comments | Adds or removes comment characters at the beginning of the current line or selection. You can also press the CTRL+7 keys to perform this action. |
Surround With | Adds a code template that surrounds the current line or selection:
|
APL Code Completion
To make APL coding easier, the APL Code Completion feature helps you to find and add APL functions and their respective syntax.
To access APL Code Completion, place the cursor where you want to add an APL function, press CTRL+SPACE and select the correct function. In order to reduce the number of hits, type the initial characters of the APL function. The characters to the left of the cursor will be used as a filter.
APL Code Completion covers:
Installed APL functions
APL functions defined in APL Code configurations
Function blocks such as
beginBatch
andconsume
- Flow control statements such asÂ
while
 andÂif
Installed UDR formats
User defined UDR formats
Â