Difference between revisions of "Questionnaire createNewWithEmptyQuestionnaireTemplate"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{HelpFiles}} ==== Questionnaire_createNewWithEmptyQuestionnaireTemplate ==== Create new empty questionnaire '''Syntax''' Questionnaire_createNewWithEmptyQuestionnaireTemp...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
'''Arguments'''
 
'''Arguments'''
  
name: is string, name questionnaire<br/>questionnaire_rt_rid: is number. Resource template type of questionnaire<br/>layout_rid: is number. resource id layout questionaire<br/>parent_rid: is number. It is parent resource id where contains questionaire<br/>iso: is string. It is language use for survey<br/>qnaire_tmpl_rp_rid: is number. Resource template type of questionnaire template
+
name: is string, name questionnaire<br />questionnaire_rt_rid: is number. Resource template type of questionnaire<br />layout_rid: is number. resource id layout questionaire<br />parent_rid: is number. It is parent resource id where contains questionaire<br />iso: is string. It is language use for survey<br />qnaire_tmpl_rp_rid: is number. Resource template type of questionnaire template
  
 
'''Return value'''
 
'''Return value'''
  
Array
+
Array of questionnaire object see [[Questionnaire_new]]
  
 
=== Examples ===
 
=== Examples ===
Line 25: Line 25:
 
number parent_rid = getResourceUniqueIdFromGuid("8FC867D7-57CD-4DD8-9F3D-D80453FE0DA1");
 
number parent_rid = getResourceUniqueIdFromGuid("8FC867D7-57CD-4DD8-9F3D-D80453FE0DA1");
 
Questionnaire_createNewWithEmptyQuestionnaireTemplate(name, questionnaire_rt_rid, layout_rid, parent_rid, "en-GB",2078);
 
Questionnaire_createNewWithEmptyQuestionnaireTemplate(name, questionnaire_rt_rid, layout_rid, parent_rid, "en-GB",2078);
 +
 +
Result:
 +
{11,7070,Questionnaire_test,2076,6562,7069,True,False,False,False,,2838,,1,0,,{1,1,1,0,0,0,0,1,36},{1,1,1,0,0,0,0,1,36},{9999,12,31,23,59,59,999,52,36},{9999,12,31,23,59,59,999,52,36},0,Questionnaire_testn1 (created due to no description).}
 +
 
</source>
 
</source>
 +
[[Category:Questionnaire_Functions]]

Latest revision as of 10:53, 8 January 2019


Questionnaire_createNewWithEmptyQuestionnaireTemplate

Create new empty questionnaire

Syntax

Questionnaire_createNewWithEmptyQuestionnaireTemplate(string name, int questionnaire_rt_rid, int layout_rid, int parent rid[, string iso[, int qnaire_tmpl_rp_rid]]);

Arguments

name: is string, name questionnaire
questionnaire_rt_rid: is number. Resource template type of questionnaire
layout_rid: is number. resource id layout questionaire
parent_rid: is number. It is parent resource id where contains questionaire
iso: is string. It is language use for survey
qnaire_tmpl_rp_rid: is number. Resource template type of questionnaire template

Return value

Array of questionnaire object see Questionnaire_new

Examples

string name = "Questionnaire_test";
number questionnaire_rt_rid = 2076;
number layout_rid = 2838;
number parent_rid = getResourceUniqueIdFromGuid("8FC867D7-57CD-4DD8-9F3D-D80453FE0DA1");
Questionnaire_createNewWithEmptyQuestionnaireTemplate(name, questionnaire_rt_rid, layout_rid, parent_rid, "en-GB",2078);

Result:
{11,7070,Questionnaire_test,2076,6562,7069,True,False,False,False,,2838,,1,0,,{1,1,1,0,0,0,0,1,36},{1,1,1,0,0,0,0,1,36},{9999,12,31,23,59,59,999,52,36},{9999,12,31,23,59,59,999,52,36},0,Questionnaire_testn1 (created due to no description).}