• 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
Re: WOPopUpButton - Refresh another WOPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOPopUpButton - Refresh another WOPopUpButton


  • Subject: Re: WOPopUpButton - Refresh another WOPopUpButton
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 24 Jun 2011 06:45:27 -0700 (PDT)

Either I do not understand what you are trying to do or you do not understand me.

I have (in a project I am working on now) a popup. when the popup changes, I use the selection to query the database for a new set of objects for the second and third popups.

if you change the first popup, the other two change their respective list bindings or in one case popup 3 is disabled.

Do I not understand what you are trying to do?

Ted

--- On Fri, 6/24/11, email@hidden <email@hidden> wrote:

From: email@hidden <email@hidden>
Subject: Re: Re: Webobjects-dev Digest, Vol 8, Issue 428
To: "Theodore Petrosky" <email@hidden>, "WebObjects webobjects-dev" <email@hidden>
Date: Friday, June 24, 2011, 7:36 AM

Hi,
I know this example and it work because the first pop 1 contains data of the pop 2. In my case, the pop 1 don't contains pop 2 data. so ajaxUpdateContainer don't work. to refresh the pop 2 data, it call a method which fetch pop 2 with pop 1 selected data primaryKey.

Ray


========================================

Message du : 24/06/2011
De : "Theodore Petrosky " <email@hidden>
A : email@hidden
Copie à : email@hidden
Sujet : Re: Webobjects-dev Digest, Vol 8, Issue 428



Have you looked at the Project Wonder Ajax examples. I use the AjaxObserverField and AjaxUpdateContainer methods and they work great for any number of WOPopUps that I want to be dependent on each other.  Ted  http://services.wocommunity.org/apps/WebObjects/AjaxExample   ------------------------------ >  > Message: 3 > Date: Fri, 24 Jun 2011 11:46:22 +0200 (CEST) > From: email@hidden > Subject: WOPopUpButton - Refresh another WOPopUpButton > onChange > To: WebObjects webobjects-dev  > Message-ID:  >  > Hi, >  >  > I have a little problem on my apps. When I want to search > something, I do selection of parameters by WOPupUpButton. > But the problem is when I do the 1st search (1st fetch) > there are no problem but when I want to do another search > and I select another parameter in the WOPopUpButton which > refresh the second one, the display page refresh all datas > (do the fetch(1st search) I done before) and then update > parameter of second
 WOPopUpButton. It makes my apps slow. >  >  > Here is exemple of codes : >  >  > in html : >  >  Pop 1 >  >  Pop 2, data depends to > Pop1 >  >  WOSubmitButton hidden > by css which contain method to refresh pop 2 data  >  > in wod : >  > periode : WOPopUpButton {  >     list = periodes;  >     item = currentPeriode;  >     displayString = currentPeriode.libelle; >  >     noSelectionString = "Toutes";  >     selection = selectedPeriode;  >     size = "1";  >     class = "periode";  >     onchange = > "javascript:this.form.elements['change'].click()"; action > which call method bind to onChange WOSubmitButton  > } >  >  >  > niveau : WOPopUpButton {  >     list = niveaux; ===>data depend to > Pop 1  >     item = currentNiveaux;  >     displayString =currentNiveaux.libelle;  >     noSelectionString = "Tous";  >     selection = selectedNiveaux;  >     size = "1";  >     class = "niveau";  > } >  >  >  > onChange
 : WOSubmitButton {  >     name = "change";  >     action = onChange;  >     class = "hide";  >     value = "";  > } >  >  > in Java : >  > public WOActionResults onChange() {  >         > comboxNiveau(selectedPeriode);  >         return null;  >     } >  > protected NSArray comboxNiveau(EOVuePeriodeParam periode) > { >     if (periode == null) {  >             > niveaux = EOVueNivAdm.fetchAllEOVueNivAdms(session()  >             >         > .defaultEditingContext(), niveauOrderings);  >         } else { >           EOQualifier > qual = EOQualifier.qualifierWithQualifierFormat(  >             >         "pperiode=%@", new > NSArray(periode.primaryKey()));  >             > niveaux = EOVueNivAdm.fetchEOVueNivAdms(session()  >             >         > .defaultEditingContext(), qual, niveauOrderings); >         } > } >  > ... >  >  > I want to know
 if there another way to refresh my pop 2 > data without using the javascript which is obliged to submit > before refresh? >  >  > Thanks >



 _______________________________________________
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

  • Prev by Date: [RESOLVED]Re: Re: WOPopUpButton - Refresh another WOPopUpButton onChange
  • Next by Date: Re: WOPopUpButton - Refresh another > WOPopUpButton onChange
  • Previous by thread: Re: Re: Webobjects-dev Digest, Vol 8, Issue 428
  • Next by thread: Re: WOPopUpButton - Refresh another > WOPopUpButton onChange
  • Index(es):
    • Date
    • Thread