• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOPopUpButton queston
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOPopUpButton queston


  • Subject: WOPopUpButton queston
  • From: Gustavo Pizano <email@hidden>
  • Date: Sat, 22 Mar 2008 22:32:23 -0500

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOPopUpButton queston
      • From: Lachlan Deck <email@hidden>
    • Re: WOPopUpButton queston
      • From: Gustavo Pizano <email@hidden>
  • Prev by Date: Re: Fetching a specified Object.
  • Next by Date: Re: Help with this db design
  • Previous by thread: Re: Fetching a specified Object.
  • Next by thread: Re: WOPopUpButton queston
  • Index(es):
    • Date
    • Thread