Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

Method Description

qaBuilder.copyQa()

Create or re-initialise the questionare based on an existing questionnaire.

Syntax

number = qaBuilder.copyQa(qaBuilder, surveyName)

Parameters

The 'qaBuilder.copyQa' method takes 2 parameters:

Name Type/Value Range/Length Description
qaBuilderstruct qaBuilder.qaBuildersee definition Required. The qaBuilder instance to copy the initial state from.
surveyNamestring  Optional. The name of the survey.

Results

The 'qaBuilder.copyQa' method returns number:

Type/Value Range/Length Description
number   The fileID of the new questionnaire or -1 for failure.

Remarks

This method restarts a questionnaire from scratch, and will create a file object to hold the questionnaire if an ID was not supplied when this object was created. The initial state of the questionnaire is copied from the supplied qaBuilder object.

The version number of the questionnaire is incremented by one hundred.

If a survey name is provided, it overrides the value in the source questionnaire.

Whitebeam release 1.3.36
(loadtime : 11ms)