You are here: Help Topics > Customization > Calculation > Insert New Knowledge Library Link Action

Insert New Knowledge Library Link Action

Event Function: InsertLibraryRef

The Insert New Knowledge Library Link action creates a link to a knowledge library at the cursor point.

Using the Events tab

Under Enter Example

Run Skip Condition

If desired, enter skip conditions for the event. When the "Run Skip Condition" is evaluated to be true, the action is not performed.

File Name

Full name of the knowledge library

"c:\Program Files\CaseWare\data\simple\simplefs.cvw".

If desired, use the prgdir function to create a relative link to the location of the knowledge library, for example, 'prgdir()+"library\notes.cvw"'

Section Label

Identifiers for the sections to include

"Cash and cash equivalents"

Insertion Point

A paragraph tag. If the paragraph is in a table, then the KLL will be inserted before or after the table depending on the event parameter Before/After

"inc&retain"

Insert After

A decision to insert the link before the insertion point (yes) or after it (no)

"Yes"

Discard Link

If this is selected, after the content is inserted in the document, the Knowledge Library Link is removed from the section.

Further Knowledge library updates will not then affect this section.

"Yes"

Syntax (if entering it in the Equation bar)

ACTION("InsertLibraryRef", expr1, expr2, expr3, expr4, expr5)

Where

expr1 = entry under File Name

expr2 = entry under Included Sections

expr3 = entry under Insertion Point

expr4 = entry under Insert After

expr5 = selection for Discard Link

How the example will appear in the Equation bar

ACTION("InsertLibraryRef", "c:\Program Files\CaseWare\data\simple\simplefs.cvw", "Cash and cash equivalents", "inc&retain", "Yes", "Yes")

Related Topics