PROBLEM
Applies To:
ITScriptNet V1/V2
The Collected Data is not saved when using a Timer element on the last prompt.
RESOLUTION
Normally a data collection program saves a record automatically when the last prompt is accepted. If a timer is set to GoTo another prompt on the last SAVE prompt, the collected data will not be saved if the timer goes off before the prompt exits. Add the SaveCollectedData function to the Timer script, as below. If you change or move the Timer element, make sure that this addition does not output duplicate records in your program.
The function, SaveCollectedData( ) saves the current values of all prompts to a collected data record. If the parameter is non-zero, the current prompt is validated before saving. If the prompt fails validation, the function will not save the record.
SaveCollectedData( 0 )
GoToPrompt("PromptName",0)
This article last updated:
2/20/2009 10:53:18 AM