you can use an AjaxUpdateTrigger
what happens is you put the trigger in the first updatecontainer. and reference
an array of strings. when the container that contains the trigger is updated,
it fires the other update containers.
<webobject name = "RegionSanitaireUpdateComponentV">
<wo:AjaxUpdateTrigger updateContainerIDs="$updateTriggerList"/>
<webobject name = "RegionSanitaireV"></webobject>
<webobject name = "RegionSanitaireObserveFieldV"></webobject>
in the java:
public NSArray<String> updateTriggerList = new
NSArray<String>("CommuneDiv1", "StreetDiv1");
or create the array in the WOD.
> On Jul 21, 2015, at 8:48 PM, HOUNKPONOU Ronald <[email protected]>
> wrote:
>
> Hi Theodore
>
> It still not working.
>
> Iam observing popup 2,3,4 because :
>
> 1st popup action must update the 2, 3, & 4th popups
> 2nd popup action must update the 3, & 4th popups
> 3rd popup action must update the 4th popup
> that why i try to wrapp all popup that should be updated in the corresponding
> AUC.
>
> Ronald
>
> 2015-07-22 1:11 GMT+01:00 Theodore Petrosky <[email protected]
> <mailto:[email protected]>>:
> but each popup is wrapped in its own update container. check out
> AjaxUpdateTrigger if you want to trigger multiple update containers.
>
> you can pass this an array of update container ids that you want to update,
> but if the three popups are to update on the change of number one, what about
> one update container. Why are you observing popup 2,3,4?
>
> does this work:
>
> <webobject name = "DepartementV"></webobject>
> <webobject name = "DepartementObserveFieldV"></webobject>
>
> <webobject name = "RegionSanitaireUpdateComponentV">
> <webobject name = "RegionSanitaireV"></webobject>
> <webobject name = "CommuneV"></webobject>
> <webobject name = "ArrondissementV"></webobject>
>
> Currently Selected Street: <webobject name =
> "SelectedArrondissementNameV"></webobject>
>
> </webobject>
>
>
>
>> On Jul 21, 2015, at 7:51 PM, HOUNKPONOU Ronald <[email protected]
>> <mailto:[email protected]>> 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 protected]
>> <mailto:[email protected]>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>> <https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com>
>>
>> This email sent to [email protected] <mailto:[email protected]>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]