FieldToTag_v10.00

<< Click to Display Table of Contents >>

Navigation:  Concordance Programming Language Reference > Concordance Scripts >

FieldToTag_v10.00

Use the FieldToTag CPL to create tags from entries in a specified field.

The FieldToTag CPL works with the following versions of Concordance:

8.x

9.5x

10

Make sure that you are using the correct CPL for your version of Concordance.

To run the FieldToTag_v[version #].cpl

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

2.Locate and replace the value for pszField (default value "MYFIELD") with the name of the field you want the contents converted to a tags.

pszField before

Before

pszField after

After

3.Locate and replace the delimiter value for pszDelimiter (default value ";").

pszDelimiter

4.When finished, save the file.

5.On the File menu, click Begin Program.

6.Locate and open the FieldToTag_v[version #].cpl file.  The file automatically executes the script.

7.When the CPL is finished, verify that the Tags pane contains tags that match the values in the specified field.  For every value in the field, you should have a matching tag.

i.For example, if the field you specified contains the following values:

               TAGS                        TEST TAG 1; TEST TAG 2; TEST Tag 3; TEST Tag 4
               The Tags pane displays the following tags: