CreateHyperlinks_v10.00

<< Click to Display Table of Contents >>

Navigation:  Concordance Programming Language Reference > Concordance Scripts >

CreateHyperlinks_v10.00

Use the CreateHyperlinks CPL to create a Concordance attachment or hyperlink to an external document.  This CPL supports multiple attachments.

The CreateHyperlinks CPL works with the following versions of Concordance:

8.x

9.5x

10

To run the CreateHyperlinks_v[version #].cpl

1.Using any text editing application, locate and open the CreateHyperlinks_v[version #].cpl file.

2.Using the text editor's Find and Replace features, replace the name of the current field specified in the CPL (default value "ATTACHMENT") with the name of the field you want to convert to a hyperlink.

Before

After
In this example, ATTACHMENT is replaced with the field name LINK.

3.Review the changes to make sure that all the modifications were made.

4.In Concordance, verify that the field contains the full path to the locations of the document you are linking to. If you are setting up links to multiple files, make sure that the links are separated by a hard return.

LINK

D:\Data\sample.txt

 

D:\Data\sample2.txt

5.On the File menu, click Begin Program.

6.Locate and open the CreateHyperlinks_v[version #].cpl file.  The CPL automatically executes the code.

7.When the CPL is finished, verify that the following changes are true for the field:

Links are highlighted.

If you right-click the link, click Edit Note, and then click Selecting the Attachment the document path is displayed.  

If you click the link, the document opens.

LINK

D:\Data\sample.txt

 

D:\Data\sample2.txt