Difference between revisions of "Questionnaire createNewWithEmptyQuestionnaireTemplate"
(Tag: visualeditor) |
|||
Line 15: | Line 15: | ||
'''Return value''' | '''Return value''' | ||
− | Array of | + | Array of questionnaire object see [[Questionnaire_new]] |
=== Examples === | === Examples === |
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).}