FindLabelValuePair

Updates the target by finding a value that uses a regular expression to match its label.

Syntax

bool FindLabelValuePair (string Regex , string Target) 

Parameters

string Regex
Smart parameter for the regular expression to find a matching label. For example, to search for the label Total, use Total.
string Target
Smart parameter for the target object to save the value to.
If you are using this action on a field, use @F to update the current field.

Returns

True if the keyword is found and the following node is a table or if the keyword is found in a table cell. Otherwise, False.

Level

Page or Field level.

Details

Populates a field using a value that is found by using the FindLabelValuePairs action. The label and values are distinguished by using font attributes and relative positioning of labels to values to identify what is a label and what is a value. FindLabelValuePair is used instead of or in conjunction with Locate actions.

FindLabelValuePair requires a previously created layout file (for example: tm000001_layout.xml) where text is grouped into blocks. See DocumentAnalytics actions for information on the layout XML file.

Example

Recognize()

FindLabelValuePairs()

FindLabelValuePair(Total,@P\Total)