Survey Forums

HomeHomeSurvey Project ...Survey Project ...Using Survey & ...Using Survey & ...Piped answers don't show up as I expectPiped answers don't show up as I expect
Previous
 
Next
New Post
1/5/2016 9:33 PM
 

I'm trying to create a review page at then end of a survey.  I have something like:

<question summary>: [[pipealiasforquestion]]

for each question in my survey.

For single Selection-Text answers (displayed with radiobuttons in the question), I get what I expect, the text of the answer in place of the pipealias.

For mutliple Selection-Text answers (displayed with checkboxes in the question), I get a nice result like "answer1, answer3, and answer4"

For Selection-Other answers, I get the answer text (e.g., "Other") when I'd like the user-supplied text from the accompanying field.

For Field-Basic, Field-Large, and XML-based answers, I get nothing.

Am I doing it wrong? (I searched the forums for other people having problems with pipealias but all my searches turn up no hits.  I almost feel like searching is broken.)

 
New Post
1/5/2016 11:35 PM
 

I can see the expected results if I make this change to the source:

--- a/Reflector/Nsurvey_WebControls/Votations.NSurvey.Helpers/PipeManager.cs
+++ b/Reflector/Nsurvey_WebControls/Votations.NSurvey.Helpers/PipeManager.cs
@@ -41,10 +41,17 @@ namespace Votations.NSurvey.Helpers
             int index = 0;
             while (index < rowArray.Length)
             {
-                PipeData.AnswersRow[] rowArray2 = (PipeData.AnswersRow[]) this._pipeData.Answers.Select("AnswerId=" + rowArray[index].AnswerId);
-                if (rowArray2.Length > 0)
+                if (rowArray[index].AnswerText != null)
                 {
-                    builder.Append(rowArray2[0].AnswerText);
+                    builder.Append(rowArray[index].AnswerText);
+                }
+                else
+                {
+                    PipeData.AnswersRow[] rowArray2 = (PipeData.AnswersRow[])this._pipeData.Answers.Select("AnswerId=" + rowArray[index].AnswerId);
+                    if (rowArray2.Length > 0)
+                    {
+                        builder.Append(rowArray2[0].AnswerText);
+                    }
                 }
                 index++;
                 if ((index + 1) == rowArray.Length)
 
New Post
1/11/2016 11:49 PM
 

Hello Chris,

Did you find the following article? 
http://www.surveyproject.org/Support/Helpfiles/Articles/tabid/194/TID/7/cid/1/Default.aspx

Maybe it's still usefull. 

We wil check the code you submitted to see if if add's any missing features. Thanks for sharing.

N.b. the search options have been repaired recently. Hopely you will find them working correctly now. If not please let us know.



 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...Using Survey & ...Using Survey & ...Piped answers don't show up as I expectPiped answers don't show up as I expect