Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Question getAll: Difference between revisions

From Catglobe Wiki
Created page with "Category:Questionnaire_Functions {{HelpFiles}} =Question_getAll= Get all question by Questionnaire resource Id. This function needs RPQ context. ===Syntax=== Que..."
 
No edit summary
Line 1: Line 1:
[[Category:Questionnaire_Functions]]
{{HelpFiles}}
{{HelpFiles}}


=Question_getAll=
===Question_getAll===


Get all question by Questionnaire resource Id.
Get all question by Questionnaire resource Id. This function needs RPQ context.
This function needs RPQ context.


===Syntax===
=== Syntax ===


Question_getAll(questionnaireResourceId);
Question_getAll(questionnaireResourceId);


===Arguments===
=== Arguments ===


questionnaireResourceId: is a number expression, it is resource id of Questionnaire.  
questionnaireResourceId: is a number expression, it is resource id of Questionnaire.


===Return type===
=== Return type ===


array
array


===Examples===
=== Examples ===
 
<source lang="javascript">
<source lang="javascript">
    Question_getAll(234110);
Question_getAll(234110);
    //{{12,6801,9,D_Initialize,,{},{}},{12,6805,5,D_InitializeJSON,,{},{}},{12,6802,4,BROWSER,,{},{}},{12,6803,1,D_CurrentLanguage,,{{13,1,United Kingdom},{13,2,Gemany}},{}},{12,6804,1,Intro,,{{13,1,I am from SUB},{13,2,I am from HQ}},{}},{12,6806,1,Q1,<p> Please rate the day on relevance and quality </p>,{{13,1,Very low},{13,2,Low},{13,3,Moderate},{13,4,High},{13,5,Very High}},{}}}
//{{12,6801,9,D_Initialize,,{},{}},{12,6805,5,D_InitializeJSON,,{},{}},{12,6802,4,BROWSER,,{},{}},{12,6803,1,D_CurrentLanguage,,{{13,1,United Kingdom},
</source>
//{13,2,Gemany}},{}},{12,6804,1,Intro,,{{13,1,I am from SUB},{13,2,I am from HQ}},{}},{12,6806,1,Q1,<p> Please rate the day on relevance and quality </p>,{{13,1,Very low},{13,2,Low}, //{13,3,Moderate},{13,4,High},{13,5,Very High}},{}}}
__NOTOC__
</source> __NOTOC__

Revision as of 09:21, 17 February 2016


Question_getAll

Get all question by Questionnaire resource Id. This function needs RPQ context.

Syntax

Question_getAll(questionnaireResourceId);

Arguments

questionnaireResourceId: is a number expression, it is resource id of Questionnaire.

Return type

array

Examples

 Question_getAll(234110);
 //{{12,6801,9,D_Initialize,,{},{}},{12,6805,5,D_InitializeJSON,,{},{}},{12,6802,4,BROWSER,,{},{}},{12,6803,1,D_CurrentLanguage,,{{13,1,United Kingdom},
 //{13,2,Gemany}},{}},{12,6804,1,Intro,,{{13,1,I am from SUB},{13,2,I am from HQ}},{}},{12,6806,1,Q1,<p> Please rate the day on relevance and quality </p>,{{13,1,Very low},{13,2,Low},  //{13,3,Moderate},{13,4,High},{13,5,Very High}},{}}}