CsvDocProp Resource dialog box

Use this dialog box to configure a CsvDocProp resource. You can access this dialog box when you configure a CsvDocProp resource in the Resource Manager dialog box.

For more information, see and Configure the @lookupCsv function.

Name

Specifies the name of the CsvDocProp resource.

Description

Provides a description of the CsvDocProp resource.

Comments

Displays any comments about the resource.

Printer Family

Use the check boxes to determine if the resource will be used for all printer families or only for certain printer families.

Data Type

Use the check boxes to determine if the resource will be used for all data types or only for certain data types.

Import Resource Data

Browse button – Allows for importing resource data. Imported files must contain text data.

Resource Editor

Enter comma separated values (CSV) or text in the box. You can also create a resource with a table of information using the CSV format.

To go to a specific line in the resource, right-click in the box and click Go To (or press Ctrl+G). In the box that displays, enter the line number and click OK. The line will be highlighted in the Resource Editor.

To find specific text, right-click in the box and click Find and Replace (or press Ctrl+F) to display the search dialog box.

Example:

The following example shows columns names and several rows of data (an entry for each column).

"Class Values", "My Test Forms", "Res - Settings", "Other Values",
"A", "short form", "100", "sample string 1",
"B", "long form", "200", "sample string 2",
"C", "std form", "300", "sample string 3"

You can then use the @LookupCsv function to look up a value for a field you are configuring.

For example, let’s assign a value to a property. Configure a business rule with a Set Document Properties Basic action. Using this rule, we will assign a value to the "Custom String1" property. Right-click in the value field for that property, and click the @LookupCsv function. Configure the function to supply a value.

  1. Choose to locate the CSV file using a Path or a Resource. In this example, the data for either choice would be in the format described above.
  2. Set the Lookup data to [Resolution].
  3. Set the Key column name to Res - Settings.
  4. Set the Data column name to Class Values.
  5. Click OK. This configuration will look up the [Resolution] property of the document we’re working with and then find that value in the Res - Settings column of the lookup data. It will then get the value from the same lookup row in the Class Values column.

Running this business rule on a document whose [Resolution] property is "300" would set the CustomString1 property to "C".

Export button

Allows for exporting the resource data. Unlike the Export button in the Resource Manager dialog box, this exports only the text data from the Resource Editor area to a text file.