Process record

<< Click to Display Table of Contents >>

Navigation:  Reference Manual > Files >

Process record

This refers to an executable program which is called when an external text is set in an Text for interviewer question.

If the "Execute" setting is used in an Text for interviewer question then a ProcessRecordname.exe program is invoked. The name at the end of the program name is the text entered in the "Execute" box.

To call a program called ProcessRecordA.exe put an A in the box.

TIP: you can filter the question so that the program is only executed if the current record passes the filter.

When called it is passed the following information as arguments:

1.The serial number of the record being entered

2.The question name of the question with the "Execute" box set

3.The telephone number set in entry TelNum for this record if present.  If not found 0 is used.

This facility is often used to call up a website using the following procedure:

Put the identifier for the ProcessRecord program in a Text for interviewer question.

Create the ProcessRecord program to read the arguments and call the website with any relevant extra information that has been passed over as arguments.

It is common practice to put the required website address in a separate file called ProcessRecordWebsite.txt and get the program to read the address from there.  This enables the program to be used unchanged in different projects.

If required a project can call the same ProcessRecord program in different places which looks at the question name to decide what to do.

If required a project can call more than one ProcessRecord program using separate questions.