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.

QAS getParameters: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
[[Category:Questionnaire Functions]]
[[Category:Questionnaire Functions]]
__NOTOC__
__NOTOC__
This function will get '''all''' parameters that passed into a specific QAS. This function must be used in a specific QAS context.<br />
This function will get '''all''' parameters that passed into a specific QAS. This function must be used in a specific QAS context.<br /><br /><b>This function just works in questionnaire viewer mode.</b>


=== <span style="color:#DF8621;">'''Syntax'''</span>  ===
=== <span style="color:#DF8621;">'''Syntax'''</span>  ===
Line 23: Line 23:


<source lang="javascript">
<source lang="javascript">
//Link of the qas : http://cg.catglobe.com/Login.aspx?r=1a997688-4a8f-43c2-bfaf-cdf3b0226678&test=1&signup=454&point=100
Dictionary parameters = QAS_getParameters();  // Must be used in a specific QAS context
Dictionary parameters = QAS_getParameters();  // Must be used in a specific QAS context
print(parameters.ToString());                // Result:    {"test":1,"signup":454,"point":100}
print(parameters.ToString());                // Result:    {"test":1,"signup":454,"point":100}
</source>
</source>
=== <span style="color:#DF8621;">'''Availability'''</span>  ===
Version 5.8.1

Latest revision as of 03:18, 10 March 2015

QAS_getParameters

This function will get all parameters that passed into a specific QAS. This function must be used in a specific QAS context.

This function just works in questionnaire viewer mode.

Syntax

QAS_getParameters()

Arguments

none

Return type

A dictionary

  • The parameter name will be the key in the keypairs of dictionary.
  • The value of parameter will be the value in the value pairs of dictionary

See also

  • getParameter()

Examples

//Link of the qas : http://cg.catglobe.com/Login.aspx?r=1a997688-4a8f-43c2-bfaf-cdf3b0226678&test=1&signup=454&point=100
Dictionary parameters = QAS_getParameters();  // Must be used in a specific QAS context
print(parameters.ToString());                 // Result:     {"test":1,"signup":454,"point":100}

Availability

Version 5.8.1