Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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 Ctrl+Shift+L.

Right-click Menu

The right-click menu has the following options:


OptionDescription
Font Size

Sets the font size.

Cut

Moves the selected text to the clipboard.

You can also press the CTRL+X keys to perform this action.

Copy

Copies the selected text to the clipboard.

You can also press the CTRL+C keys to perform this action.

Paste

Pastes the contents of the clipboard into the place where the insertion point has been set.

You can also press the CTRL+V keys to perform this action.

Select All

Selects all the text.

You can also press the CTRL+A keys to perform this action.

Undo

Undoes your last action.

You can also press the CTRL+Z keys to perform this action.

Redo

Redoes the last action that you undid with Undo.

You can also press the CTRL+Y keys to perform this action.

Find/Replace...

Displays a dialog where chosen text may be searched for and, optionally, replaced.

You can also press the CTRL+H keys to perform this action.

Quick Find

Searches the code for the highlighted text.

You can also press the CTRL+F keys to perform this action.

Find Again

Repeats the search for last entered text in the Find/Replace dialog.

You can also press the CTRL+G keys to perform this action.

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 CTRL+F3 keys to perform this action.

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. 

Show Usages

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 CTRL+F4 keys to perform this action.

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 CTRL+U keys to perform this action.

MIM Assistance...

Open the MIM Browser from which the available MIM Resources may be inserted into the code area.

You can also press the CTRL+M keys to perform this action.

Note!

This option is only available if you entering APL code in an Analysis or an Aggregation agent configuration.

Import...

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.

Export...

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 CTRL+SPACE keys to perform this action.

Indent

Adjusts the indentation of the code to make it more readable.

You can also press the CTRL+I keys to perform this action.

Jump to Pair

Moves the cursor to the matching parenthesis or bracket.

You can also press the CTRL+SHIFT+P keys to perform this action.

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:

  • for Loop (CTRL+ALT+F)
  • while Loop (CTRL+ALT+W)
  • Debug Expression (CTRL+ALT+D)
  • if Condition (CTRL+ALT+I)
  • Block Comment (CTRL+ALT+B)

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 and consume

  • Flow control statements such as while and if
  • Installed UDR formats

  • User defined UDR formats

 


  • No labels