• 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: Dependent popup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependent popup


  • Subject: Re: Dependent popup
  • From: HOUNKPONOU Ronald <email@hidden>
  • Date: Wed, 22 Jul 2015 19:08:35 +0100

the  ‘listDepartement’ it get created on the page loading process. All the content of that list it take from the database.

For your previous sugestion :
If i do it like (each update container has to close and surround its object  ), then only one chlid popup will be updated on a parent popup change (That is actually what i have).

What i would like to have is : On a parent popup change, every  chils will get updated with the corresponding data.

2015-07-22 15:50 GMT+01:00 Theodore Petrosky <email@hidden>:
you’ve pretty much copied the DependentListsExample. it should work. but it is dependent on creating the array of ‘listDepartement’ fully populated.  how are you creating the listDepartement? what is it? how is it defined? when is it created? 

this should just work. I mean, I have it working in an app that I did three years ago. Unfortunately, it has so much ka ka in it that I don’t like to look at it too much. It is too embarrassing.



On Jul 21, 2015, at 7:51 PM, HOUNKPONOU Ronald <email@hidden> wrote:

hi everyone.

I trying to use the dependent popup list example without success.
I have 4 popup those content must be updated regarding the preview popup selected value;
The probles is that when the first popup change only the second is updated. But i want all the three remaining get updated.
      
Here ares my .wo & .wod concerned section

Thank for your help.


HTML

<webobject name = "DepartementV"></webobject>
     <webobject name = "DepartementObserveFieldV"></webobject>

              <webobject name = "RegionSanitaireUpdateComponentV">
                    <webobject name = "RegionSanitaireV"></webobject>
                    <webobject name = "RegionSanitaireObserveFieldV"></webobject>

              <webobject name = "CommuneUpdateComponentV">
                        <webobject name = "CommuneV"></webobject>
                        <webobject name = "CommuneObserveFieldV"></webobject>

              <webobject name = "ArrondissementUpdateComponentV">
                        <webobject name = "ArrondissementV"></webobject>
                      webobject name = "ArrondissementObserveFieldV"></webobject>
                        <p/>
                        
Currently Selected Street: <webobject name = "SelectedArrondissementNameV"></webobject>
           </webobject>
           
           </webobject>
      </webobject>






WOD

DepartementV : WOPopUpButton {
    class = "form-control btn-lg";
    id = "DepartementID";
    list = listDepartement;
    item = departement;
    selection = selectedDepartement;
    displayString = departement.departement_Lib;
    noSelectionString = "--Departement--";
}


DepartementObserveFieldV : AjaxObserveField {
    observeFieldID = "DepartementID";
    updateContainerID = "CountyDiv1";
    fullSubmit = false;
}

RegionSanitaireUpdateComponentV : AjaxUpdateContainer {
    id = "CountyDiv1";
}

RegionSanitaireV : WOPopUpButton {
    id = "RegionSanitaireID";
    list          =   selectedDepartement.region_Sanitaires;
    selection     =   selectedRegionSanitaire;
    item          =   regionSanitaire;
    displayString =   regionSanitaire.region_sanitaire_Lib;   
    class = "form-control btn-lg";
    noSelectionString = "No County Selected";
}

RegionSanitaireObserveFieldV : AjaxObserveField {
    observeFieldID = "RegionSanitaireID";
    updateContainerID = "CommuneDiv1";
    fullSubmit = false;
}

CommuneUpdateComponentV : AjaxUpdateContainer {
    id = "CommuneDiv1";
}

CommuneV : WOPopUpButton {
    id = "CommuneID";
    list          =   selectedRegionSanitaire.communeses;
    selection     =   selectedCommune;
    item          =   commune;
    displayString =   commune.commune_Lib;    
    class = "form-control btn-lg";
    noSelectionString = "No Street Selected";
}

CommuneObserveFieldV : AjaxObserveField {
    observeFieldID = "CommuneID";
    updateContainerID = "StreetDiv1";
    fullSubmit = false;
}

ArrondissementV : WOPopUpButton {
    id = "ArrondissementID";
    list          =   selectedCommune.arrondissements;
    selection     =   selectedArrondissement;
    item          =   arrondissement;
    displayString =   arrondissement.arrondissement_Lib;    
    class = "form-control btn-lg";
    noSelectionString = "No Street Selected";
}

ArrondissementObserveFieldV : AjaxObserveField {
    observeFieldID = "CommuneID";
    updateContainerID = "StreetDiv1";
    fullSubmit = false;
}

ArrondissementUpdateComponentV : AjaxUpdateContainer {
    id = "StreetDiv1";
}
 _______________________________________________
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: Dependent popup
      • From: Alexander Spohr <email@hidden>
References: 
 >Dependent popup (From: HOUNKPONOU Ronald <email@hidden>)
 >Re: Dependent popup (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: Dependent popup
  • Next by Date: Re: Dependent popup
  • Previous by thread: Re: Dependent popup
  • Next by thread: Re: Dependent popup
  • Index(es):
    • Date
    • Thread