This class contains the APIs for DeepSee Term Lists. A Term List is a simple lookup table that can be used to translate values when creating DeepSee models or can be referenced at run-time.
Create (or update if present) the given term list.
pTermList is the name of the term list.
pCaption is the optional caption (display name) of the term list.
pFieldList is an optional ^-delimited list of fields.
pPattern is an optional pattern to apply to the "value" field.
pDescription is the description of the term list.
pSubjectArea is the optional name of the subject area the term list applies to.
Delete the specified term list.
Export a TermList to the CSV-file, pFileName. The meta-data for the term list is written to the starting lines of the file using %% as a prefix for key values. + WAL044 -- add pIncludeEncoding; this is not needed in %DeepSee.UI.TermListExport
Get a list of currently defined term lists. This is returned as:
pList(NAME) = $LB(name,caption,moddate,type)
Lookup all values (the "value" field) from the term list pTermList and copy them into a local array. The output is:
pArray(key) = value
If pField is supplied, then use the value of that field.
Load a TermList from the CSV-file, pFileName. The first value on each line is used as a key value, the second as the "value" field. All other values are ignored unless there is a field list defined. In this case, the field list determines how the values within each record are used.
If pTermListName is supplied, use it. Otherwise use the %%NAME field found in the file.
If pFileName is a stream, then import from it. WAL041 -- pTermListName is returned
Lookup a single value within the term list pTermList. pKey is the unique key for the item in the term list.
pField is the name of the value field to use; if not supplied, "value" is used.
pDefault is a value to return if the key or property value do not exist.
If the termlist has a pattern associated with it, and the requested field is the "value" field, then the pattern is applied to value before it is returned.
Parse a CSV record and split it into an ordinally index array.
Set a value within the term list pTermList using the given key value. If pField is provided, then set the value of that field.
Test if the given term list exists.
Write out the contents of the integer-indexed array pRecord in csv format. There should be no gaps in the array.