Questionnaire createNewWithEmptyQuestionnaireTemplate
Revision as of 09:58, 29 November 2016 by Nguyennhuhong (talk | contribs)
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
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).}