Difference between revisions of "Questionnaire getQuestionnairesByResourceId"
Nguyenduyan (talk | contribs) (Created page with "Category:Questionnaire_Functions {{HelpFiles}} ====Questionnaire_getQuestionnairesByResourceId==== To get information of many questionnaire by resource id '''Synt...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
====Questionnaire_getQuestionnairesByResourceId==== | ====Questionnaire_getQuestionnairesByResourceId==== | ||
− | To get information of many | + | To get information of many questionnaires at the same time by their resource id |
'''Syntax''' | '''Syntax''' | ||
Line 12: | Line 12: | ||
'''Arguments''' | '''Arguments''' | ||
− | questionnaireResourceId : array of resource id of | + | questionnaireResourceId : array of resource id of questionnaires. |
'''Return type''' | '''Return type''' | ||
− | Dictionnary | + | Dictionnary which keys are QnaireRId and values are questionnaires object (see [[Questionnaire_new]]) |
'''Example''' | '''Example''' | ||
<source lang="javascript"> | <source lang="javascript"> | ||
Questionnaire_getQuestionnairesByResourceId({15575932,15592000}); | Questionnaire_getQuestionnairesByResourceId({15575932,15592000}); | ||
+ | |||
+ | /* result | ||
+ | { | ||
+ | "15575932": {11,15575932,Panel,15575925,15575926,15575931,False,False,False,False,,15571205,,3,0,,{1,1,1,0,0,0,0,1,40},{1,1,1,0,0,0,0,1,40},{9999,12,31,23,59,59,999,52,40},{9999,12,31,23,59,59,999,52,40},0,,/questionnairemodule/editor/questionnairejseditor.aspx?id=2050&pq=$3574}, | ||
+ | "15592000": {11,15592000,Panel,15575925,15591986,15591999,False,False,False,False,,15591981,,3,0,,{1,1,1,0,0,0,0,1,40},{1,1,1,0,0,0,0,1,40},{9999,12,31,23,59,59,999,52,40},{9999,12,31,23,59,59,999,52,40},0,,/questionnairemodule/editor/questionnairejseditor.aspx?id=2180&pq=$3721} | ||
+ | }*/ | ||
</source> | </source> |
Latest revision as of 10:58, 8 January 2019
Questionnaire_getQuestionnairesByResourceId
To get information of many questionnaires at the same time by their resource id
Syntax
Questionnaire_getQuestionnairesByResourceId (array questionnaireResourceId)
Arguments
questionnaireResourceId : array of resource id of questionnaires.
Return type
Dictionnary which keys are QnaireRId and values are questionnaires object (see Questionnaire_new)
Example
Questionnaire_getQuestionnairesByResourceId({15575932,15592000});
/* result
{
"15575932": {11,15575932,Panel,15575925,15575926,15575931,False,False,False,False,,15571205,,3,0,,{1,1,1,0,0,0,0,1,40},{1,1,1,0,0,0,0,1,40},{9999,12,31,23,59,59,999,52,40},{9999,12,31,23,59,59,999,52,40},0,,/questionnairemodule/editor/questionnairejseditor.aspx?id=2050&pq=$3574},
"15592000": {11,15592000,Panel,15575925,15591986,15591999,False,False,False,False,,15591981,,3,0,,{1,1,1,0,0,0,0,1,40},{1,1,1,0,0,0,0,1,40},{9999,12,31,23,59,59,999,52,40},{9999,12,31,23,59,59,999,52,40},0,,/questionnairemodule/editor/questionnairejseditor.aspx?id=2180&pq=$3721}
}*/