From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 10: Line 10:
 
===Generate questionnaire based on config set name===
 
===Generate questionnaire based on config set name===
  
;<code>[gn:act_loadQuestionaire]|[target,source]</code>
+
:;<code>[gn:act_loadQuestionaire]|[target,source]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[GnQuestionnaire|target]]
+
| <code>[[GnQuestionnaire|target]]</code>
 
| [[target]] where the questionnaire will be displayed
 
| [[target]] where the questionnaire will be displayed
 
* Valid [[target]]:
 
* Valid [[target]]:
** [[GnQuestionnaire]]
+
** <code>[[GnQuestionnaire]]</code>
 
|-
 
|-
| [[source]]
+
| <code>[[source]]</code>
 
| [[source]] from where the config set name will be retrieved
 
| [[source]] from where the config set name will be retrieved
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
** [[Datatypes#text|text]]
+
** <code>[[Datatypes#text|text]]</code>
 
|-
 
|-
 
|}
 
|}
  
 
====Example====
 
====Example====
<code>+id/questionnaire</code> - GnQuestionnaire which will display questionnaire<br>
+
:<code>+id/questionnaire</code> - <code>[[GnQuestionnaire]]</code> which will display questionnaire<br>
<code>@variable/questionnaireConfigSetName</code> - config set name<br><br>
+
:<code>@variable/questionnaireConfigSetName</code> - config set name<br>
<code>[gn:act_loadQuestionaire]|[+id/questionnaire,@variable/questionnaireConfigSetName]</code>
+
:; ⤷ <code>[gn:act_loadQuestionaire]|[+id/questionnaire, @variable/questionnaireConfigSetName]</code>
 
<hr>
 
<hr>

Latest revision as of 16:22, 12 July 2017

gn:act_loadQuestionnaire

Description
Used exclusively with GnQuestionnaire widget to dynamically generate questionnaire
Action returns
void

Action signatures

Generate questionnaire based on config set name

[gn:act_loadQuestionaire]|[target,source]
Parameter Description
target target where the questionnaire will be displayed
source source from where the config set name will be retrieved

Example

+id/questionnaire - GnQuestionnaire which will display questionnaire
@variable/questionnaireConfigSetName - config set name
[gn:act_loadQuestionaire]|[+id/questionnaire, @variable/questionnaireConfigSetName]