Created
July 22, 2015 17:57
-
-
Save byronferguson/778b52367b39418de4a6 to your computer and use it in GitHub Desktop.
Query Loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pageInfo = []; | |
var questionInfo = {}; | |
// Loop over the questions to fill in the other aspects (options / responses) | |
for(var record in local.results) { | |
structClear(local.questionInfo); | |
structInsert(local.questionInfo, "question", record); | |
structInsert(local.questionInfo, "options", record.qID); | |
structInsert(local.questionInfo, "responses", 1); | |
arrayAppend(local.pageInfo, local.questionInfo); | |
} |
bdw429s
commented
Jul 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment