Difference between revisions of "DCS newQuestionnaireQuickSetup"

From Catglobe Wiki
Jump to: navigation, search
(Example)
(Arguments)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
 
 
 
= DCS_newQuestionnaireQuickSetup  =
 
= DCS_newQuestionnaireQuickSetup  =
 +
__NOTOC__
 +
[[Category:Data_cache_specification_module]]
  
Quick create a DCS base on questionnaires and they must have the same questionnaire template.
+
Quickly setup:
 +
*a DCS for a specific questionnaire
 +
*or a DCS for a list of questionnaires (the questionnaires in this list must use the same questionnaire template)
  
 
=== Syntax  ===
 
=== Syntax  ===
  
DCS_newQuestionnaireQuickSetup(DCSName, Questionnaires)  
+
DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs)  
  
 
=== Arguments  ===
 
=== Arguments  ===
  
DCSName: is a string. This is name of new DCS.  
+
*DCS_Name: is a string. This is name of new DCS.  
  
Questionnaires: is an array which contain questionnaire resource id.  
+
*QuestionnaireRIDs: is an array which contain questionnaire resource ids.
  
 
=== Return type  ===
 
=== Return type  ===
Line 20: Line 22:
  
 
=== Example  ===
 
=== Example  ===
 +
<source lang="javascript">
 +
Example 2:
 +
string DCS_Name = "DCS for 1 Qnaires";
 +
array QuestionnaireRIDs = {37246024}; //Questionnaire Resource ID
 +
DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs);
  
string DCSName= "dcs of questionnaire 1 and questionnaire 2";  
+
Example 2:
 
+
string DCS_Name = "DCS for 2 Qnaires";  
array Qlist={37246024, 37278197}; //Questionnaire Resource ID
+
array QuestionnaireRIDs = {37246024, 37278197}; //Questionnaire Resource ID
 
+
DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs);  
DCS_newQuestionnaireQuickSetup(DCSName, Qlist);  
+
</source>
 
 
<br>__NOTOC__
 
 
 
[[Category:Data_cache_specification_module]]
 

Latest revision as of 11:12, 21 December 2011

DCS_newQuestionnaireQuickSetup

Quickly setup:

  • a DCS for a specific questionnaire
  • or a DCS for a list of questionnaires (the questionnaires in this list must use the same questionnaire template)

Syntax

DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs)

Arguments

  • DCS_Name: is a string. This is name of new DCS.
  • QuestionnaireRIDs: is an array which contain questionnaire resource ids.

Return type

Empty

Example

Example 2:
string DCS_Name = "DCS for 1 Qnaires"; 
array QuestionnaireRIDs = {37246024}; //Questionnaire Resource ID
DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs); 

Example 2:
string DCS_Name = "DCS for 2 Qnaires"; 
array QuestionnaireRIDs = {37246024, 37278197}; //Questionnaire Resource ID
DCS_newQuestionnaireQuickSetup(DCS_Name, QuestionnaireRIDs);