Add Libraries
Libraries are a means to create reusable instructions for
KCM Designer
when
Master Templates are executed. While Includes are compiled in
Master Templates,
Libraries are self-contained, dynamic components.
Libraries contain different kinds of functions and procedures, such as:
-
Formatting functions used to format Fields in Text Blocks.
You can extend the list of available functions by defining your own format functions in a Library.
-
Filter functions used to filter Text Blocks in Text Block Lists.
Note The following restrictions apply when removing or renaming
Libraries:
For more information on the reusable functions and procedures that a
Library can contain, see the topics on
Libraries and exit points in the
Kofax Communications Manager Template Scripting Language Developer's Guide.
- Library functions cannot be renamed or removed after the Code Library has been unlocked.
- A Library cannot be renamed or removed if an object refers to one of the functions it contains.
Create and edit a Library
- Navigate to .
-
Click
Libraries and then click
New Library in the
New pane on the right.
The New Library window appears.
-
Enter a name for the new
Library and a level and click
OK.
Note All Libraries have to be assigned unique level numbers. Level numbers determine the order in which the contents are loaded. Libraries with higher levels have priority over libraries with lower levels. The default level is 100.
The new Library appears in Libraries.
-
Click the new
Library and then click
Edit in the
View and Edit pane on the right.
The Library opens in the Library Editor.
- Add or paste the necessary code to the Library.
-
Click
Save & Close.
If an error occurs, click Show Error Document.