IVM PLUGIN GETDATA.EXE

getdata.exe DataFile Value [DataVariable] [StatusVariable]

Input:
DataFile - The name of the file containing comma delimited Value,Data list.
Value - The value to search for (the first of the 2 comma delimited items).
DataVariable - The variable that the data (the second in the list) is return as.
StatusVariable - The variable that the status (found or fail) is returned as. 

defaults:
DataVariable data
StatusVariable found

returns:	
data=XXXX&found=found
   - or if not found in list -
found=fail

[Note these return examples the defaults DataVariable = data and StatusVariable = found are used].

-----

This is a plugin for the IVM Telephone Voice Attendant which can be downloaded at www.nch.com.au/ivm. 

GETDATA.EXE returns information from a simple database stored as a comma delimited list. This can be used to return information to a caller based on what they dial in.

Example applications include returning account balances based on customer account number, returning student results based on entered student number or anything else where a caller enters a number which then can be used return information.

The data must be contained in a comma delimited list containing 2 field. The first is the input value and the second the data. You can create comma delimited lists using any test editor (eg. Notepad). Alternatively most databases will export data in the comma-delimited-list format.

Example List (saved as accounts.dat):
1000201,1020
1000202,400035
1000203,0

If IVM ran the plugin "getdata.exe accounts.dat %accountnumber% balance" (assuming the caller had entered the variable account number previously. Then either (i) the variable found would be set to fail if the account number was not found or, (ii) the variable found would be set to found and the variable balance wound contain the account balance (as contained in accounts.dat). The variable balance could then be used with the OGM-Advanced Read function.

For more information about using plugins, please see the IVM Help Pages.

-----

Licence: This plugin may be distributed freely so long as it is distributed for use only with IVM. NCH Swift Sound may revoke this licence at any time with notice.

(c) 2001 NCH Swift Sound
http://www.nch.com.au