change the update containerID to the result of a method. Look at the 
UpdateTriggerExample, see if this helps figure it out.

how do you calculate the ShowConditional value? you could create the 
UpdateTrigger array there.




On Mar 9, 2015, at 3:55 PM, Calven Eggert <[email protected]> wrote:

> that worked!  Thanks!  
> 
> However, how can I deal with this when I have a field that is only shown 
> based on a woconditional?  Like so...(BTW, this gives the same original 
> problem with the phantom field at the top of the page)
> 
>>> <WEBOBJECT NAME=UpdateComponent>
>>> <WEBOBJECT NAME=ShowConditional><WEBOBJECT 
>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT>
> 
>>> </WEBOBJECT>
> 
> 
> 
> If I put the UpdateComponent in the ShowConditional then obviously if the 
> ShowConditional is false then the UpdateComponent does not exist on the page.
> 
>>> <WEBOBJECT NAME=ShowConditional>
>>> <WEBOBJECT NAME=UpdateComponent><WEBOBJECT 
>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT>
> 
>>> </WEBOBJECT>
> 
> 
> 
> Calven
> 
> 
> On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:
> 
>> You are wrapping the row with the updateContainer. Try wrapping the contents:
>> 
>>> <tr>
>>>     <td class="maincontentbold">Malignant Disease:</td>
>>>     <td><WEBOBJECT NAME=UpdateComponent><WEBOBJECT 
>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT></td>
>>> </tr>
>> 
>> 
>> I was trying to see if I could find an example in anything I did in the past 
>> (I have been working with D2W this past year)
>> 
>> 
>> On Mar 9, 2015, at 11:59 AM, Calven Eggert <[email protected]> wrote:
>> 
>>> Hi,
>>> 
>>> I'm learning AJAX and I'm following the Dependent List Example but am 
>>> having weird results.  The result is the observed field is duplicated at 
>>> the top of the webpage.  When I view source in Chrome, the observed field 
>>> is only found once in the HTML at the proper place.  Here is my code:
>>> ...
>>> <tr>
>>>     <td class="maincontentbold">Site Group:</td>
>>>     <td><WEBOBJECT NAME=SiteGroupPopUpButton></WEBOBJECT><WEBOBJECT 
>>> NAME=SiteObserveField></WEBOBJECT></td>
>>> </tr>
>>> <WEBOBJECT NAME=UpdateComponent>
>>> <tr>
>>>     <td class="maincontentbold">Malignant Disease:</td>
>>>     <td><WEBOBJECT NAME=SiteOfDiseasePopUpButton></WEBOBJECT></td>
>>> </tr>
>>> </WEBOBJECT>
>>> ...
>>> 
>>> SiteGroupPopUpButton: WOPopUpButton {
>>>     id = "groupPopupID";
>>>     displayString = currentItem.displayName;
>>>     item = currentItem;
>>>     list = siteGroupArray;
>>>     noSelectionString = kNoneSelected;
>>>     selection = siteGroupSelection;
>>> }
>>> SiteObserveField: AjaxObserveField {
>>>     observeFieldID = "groupPopupID";
>>>     updateContainerID = "observerID";
>>>     fullSubmit = false;
>>> }
>>> UpdateComponent: AjaxUpdateContainer {
>>>     id = "observerID";
>>> }
>>> SiteOfDiseasePopUpButton: WOPopUpButton {
>>>     displayString = currentItem.displayName;
>>>     item = currentItem;
>>>     list = siteGroupSelectionSites;
>>>     noSelectionString = kNoneSelected;
>>>     selection = currentCase.siteOfDiseaseLookup;
>>> }
>>> 
>>> SiteGroupPopUpButton is the field that the user will change (observed 
>>> field) and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that 
>>> should change accordingly.  When the Site Group popup is changed the 
>>> phantom popup at the top of the page does change appropriately but the real 
>>> popup does not. (not sure if images are allowed in this email list but one 
>>> is included just in case, so you can see the phantom popup at the top of 
>>> the page)
>>> 
>>> What am I doing wrong?
>>> 
>>> Calven
>>> 
>>> <screenshot.png>
>>> 
>>> _______________________________________________
>>> 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/tedpet5%40yahoo.com
>>> 
>>> This email sent to [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]

Reply via email to