WOPopupbutton and Likert scales
WOPopupbutton and Likert scales
- Subject: WOPopupbutton and Likert scales
- From: David Holt <email@hidden>
- Date: Wed, 15 Dec 2004 15:15:47 -0800
I have a survey component that contains 5 Likert scales. I have been creating an NSArray of integer values and calling it RatingScale in the component. I use WOPopUpButtons for the user interface element to select an integer from the scale. The "list" is bound to the NSArray.
I have bound the "selection" of WOPopupButton directly to the attribute in the EO that holds the value for each response(survey.question1, survey.question2, etc). I have been referencing the same array for each of the 5 survey questions.
I have now been asked to provide a screen for editing the responses to the questions. When I come to display the selected values on an edit page, the WOPopupButtons are showing the "noSelectionString" binding. The bindings I use on the data entry screen don't work, and that is obvious because the survey attribute does not equals() one of the elements of the RatingScale NSArray. My reading of the multitude of posts on this subject has shown me this is the problem.
I could bind to the selected item of the array instead of to the EO attribute and then pass that to the EO for each question. That seems to mean that I would have to have a separate array for each of the questions' Likert scales. Am I missing something in my design that would make it easier? I have also tried a WODisplayGroup and tried to use multiple to-one relationships to a RatingScale table, but that didn't work because multiple relationships cannot be created to the same attribute in the RatingScale table. I guess my question is: Do I have to create multiple lookups or multiple array objects representing possible responses to each of the questions or can display the variables out of the database while still giving the option to select from the RatingScale values? Thanks,
David
--
The notion of following your passion is worth indulging. Your passion is your source of power. To lead a really full life, you need to follow where it leads . . . in defiance of all things conventional, perhaps. And of course it is at a price. You have to know that going in. But the price you pay, in my opinion, is not even worth the time of day to think about. It’s so important not to knee-pad around the world. You should never bow down to anything but those you love and respect. Ever. For anything.
<x-tad-smaller>
Doug Peacock
from Sunbeams: http://www.thesunmagazine.org</x-tad-smaller> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden