Formatting the results from the date search, Figure 5-20. matchvalue_format function, Chapter 5 – Kofax INDICIUS 6.0 User Manual

Page 64: Getting started guide (free-form), Include lib_freeform.ifv

Advertising
background image

Chapter 5

58

Getting Started Guide (Free-Form)

Function

MatchValue_Format(sSearchName, sValue)

Select Case

sSearchName

Case

"Date"

'Insert formatting for search 'Date' here...

MatchValue_Format

=

sValue

Case

"AccountNo"

'Insert formatting for search 'AccountNo' here...

MatchValue_Format

=

sValue

Case

"TransferDate"

'Insert formatting for search 'TransferDate' here...

MatchValue_Format

=

sValue

Case

"ZipCode"

'Insert formatting for search 'ZipCode' here...

MatchValue_Format

=

sValue

'** Insert cases for new searches here **

Case

Else

'This case catches any searches with formatting turned on but

'no case defined above.

MatchValue_Format

=

sValue

End Select

End Function

Figure 5-20. MatchValue_Format Function

Important

The function name must not be altered.

Formatting the Results from the Date Search

You will add a formatting function within the case “Date” to reformat the date.

This function can be your own format function, or can call the
LibFreeForm_FormatDate function found in the Lib_FreeForm.ifv example script.

X

To format the results

1

Copy the following script file to the clipboard:

<Installation Path>\examples\Solicitors Letters\config\Lib_FreeForm.ifv.

2

Paste it to the following folder:

<Installation Path>\config\.

3

In Definer, insert the following line after the “Option Explicit” line at the top
of the current script:

#

INCLUDE

Lib_FreeForm.ifv

This makes all the functions within the included script (Lib_FreeForm.ifv)
accessible from the file you are working on.

4

Return to the MatchValue_Format function by selecting it from the
“Declarations” drop down list at the top right of the script.

Advertising