Hello I now which one, I made a trial and error and now i know wich one should I use for the WOPopupButton. , but for the other stuff, the one how to show 1000+ specialities Im open to hear opinions.

Gus




On Mar 22, 2008, at 10:32 PM, Gustavo Pizano wrote:

Hello, well in the form im creating Im generating a popUpbutton from the db, I manage to do it with the following

private StudyLevel studyLevel;
studies = StudyLevel.fetchAllStudyLevels(session().defaultEditingContext());

PopUpButton : WOPopUpButton {
  list = studies;
  item = studyLevel;
  displayString = studyLevel.name;
  noSelectionString = "------------------" ;

}


so I will get a list with the "name" attribute, anyway I was reading the api, and I see that I have 2 optins but I don't get tehm clear
selection
Object that the user chose from the selection list. For the college example, selection would be a college object.

selectedValue
Value that is used with direct actions to specify which option in the list is selected.



which one should I use, so when submitting I will send the "id" atrribute only to the Person table?.

Other thing that Im coming to, is that I need to register 1 or more Specialities, how can I do that?, I was thinking in put a button (link whatever) "Add Speciality", so dynamically will appear fields to choose the speciality, and then when pressing save it will save it, and so on.I dunno I guess there is a better and easier way to achieve this. what im thinkin is that I can't disaplay the specialities options in a WOPopUpButton becuase I have like 1100 specilaityes, so any ideas??

Thanks a lot

Gustavo










 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to