#LD notation also supports the specification of which language to use. This is particularly useful in cases where users need to receive system messages in their preferred language.
Output always in English
Value = #LD["english"]("Test: {0}", <parameter>)#
Value = #LD["en-US"]("Test: {0}", <parameter>)#
Output in the default language:
Value = #LD("Test: {0}", <parameter>)#
Value = #LD[""]("Test: {0}", <parameter>)#
Using a variable:
Dim lang As String = "english"
Value = #LD[lang]("Test: {0}", <parameter>)#
You do not need to enter the language in square brackets, it is optional. It is important, however, that the language statement is a string. If the language is not given or the resulting string is empty or "nothing", the language is used that is currently set up for the application.
The script library contains source code for all the scripts used in One Identity Manager. The default scripts that we supply cannot be edited. These scripts are overwritten during schema installation even if they are used in custom scripts.
The scripts are stored in the category Script library in the Designer and created and edited with the Script Editor.
Create scripts in the script library and edit them with the Script Editor. The editor is started from the program "Designer" and opens in the document view. Only additional Script Editor functions are described in the following.
The following items are added to the menu bar when the editor starts.
Menu | Menu Item | Meaning | Key Combination |
---|---|---|---|
Edit | Undo | Restores state before last change. | |
Redo | Restores state after last change. | ||
Cut | Removes selected script code and stores it in the clipboard. | ||
Copy | Copies selected code into the clipboard. | ||
Paste | Inserts code stored in the clipboard. | ||
Delete | Deletes the selected script code. | ||
Increase indent | Moves the selected script code to the right in the script window. | ||
Decrease indent | Moves the selected script code to the left in the script window. | ||
Search text...? | Opens dialog box for searching text. | ||
Script | New | Creates a new script. | |
Delete | Deletes the selected script. | ||
Save | Save changes to the script. | ||
Compile Script | Tests script compilation. Messages are sent to the <Compiler error> view. | F9 | |
Insert code snippet | A code snippet is inserted into the script. | F2 | |
Options | Line number | Shows/hides line numbers in the script window. | |
Text block | Expands/collapses text blocks in the script window. | ||
View | Compiler errors | Shows/hides the "Compiler errors" view. | |
Test script | Shows/hides the "Test script" view. | ||
Help | Script Editor | Opens the editor help. |
Icon | Meaning |
---|---|
Shows/hides line numbers. | |
Expands/collapses text blocks. | |
Undo last change. | |
Redo last change. | |
Removes selected script code and stores it in the clipboard. | |
Copies selected code into the clipboard. | |
Inserts code stored in the clipboard. | |
Deletes the selected script code. | |
Decreases insert. | |
Increases insert. | |
Inserts code snippet. | |
Search and replace. | |
Saves changes to the script. | |
Creates a new script. | |
Deletes the selected script. | |
Compiles the script. |
© 2023 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy