Filters |
Top Previous Next |
Filters are executed via the filters object, and are found in filters.ini and filters.custom.ini. They are implicitly run by job designs, or can be run by any custom code, including other filters. Filter routines are designed to convert one form of text to another, such as converting raw numbers into formatted strings, or removing invalid characters. The routine is designed to work with a variable in$, and create a variable out$. When the filter returns a value, it is returning out$.
Filters can also have side effects that can be beneficial, such as updating properties in a inbounddoc object. When a filter runs, it typically has an inbounddoc object available to it in a variable "doc". When a filter is run from a DocFlow job, the doc object is a docflowdoc object. When a doc object is available and has a jobname$ or flowid$ property assigned (which is automatic when run in a job execution context), then that job's parameters are used to pre-create "param.name$" variables for each parameter.
Filters provide three settings:
|