• 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: Passing values between elements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing values between elements


  • Subject: Re: Passing values between elements
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Wed, 29 Mar 2006 11:51:41 -0500

Hi, Jesus,

On Mar 29, 2006, at 11:05 AM, jesus Guzman wrote:

I have a similar requirement, but how do you distingluish between the "accept" action and the "refresh 2nd pupup" action on submit.
since you trigger the accept on the 1st popups change

I put the first pop-up in its own form. When it returns, I know the value selected there, persist it in the WOComponent and don't need to see it again on the second submit.


Regards,
Jerry

On Mar 29, 2006, at 6:50 AM, Jerry W. Walker wrote:

Hi, Siegfried,

I did something similar in an application a while back. Translating the problem domain for that application to your two button names: I created my page with the Location pop-up's list attribute bound to the initialized array of locations. I bound the Building pop-up's list attribute to an empty array. I also added the onChange attribute to the Location button:

onChange = "javascript:this.form.target='_parent'; this.form.submit()"

The action method for the form submission used the Location's selection attribute value in an EOQualifier which I used to fetch the values for the Building's array for that location. The action method, of course, returned context().page() to display the same page again, but with the Building's pop up filled in.

By adding the "onChange" attribute to the Location's pop-up, you save the user having to click a button after selecting the location. The page still has to refresh, but it feels a bit more convenient having the page refresh automatically upon selecting a Location.

For a smoother approach without page refresh, you would have to move to Ajax or download the complete Buildings array initially to some JavaScript variable and play some games with JavaScript to filter the ones you want based on the Location selection.

Regards,
Jerry

On Mar 29, 2006, at 6:46 AM, Siegfried Makedanz wrote:

Hello,

I have two dynamic elements (WOPopUpButton) named Locations and Buildings. Now I would like to set the list binding in the Buildings array based on the selection in Locations. Probably an easy one, but as a sporadic WO user I have no clue yet.

Thanks,
Siegfried
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@gmail.com


This email sent to email@hidden


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev




--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
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


References: 
 >Passing values between elements (From: Siegfried Makedanz <email@hidden>)
 >Re: Passing values between elements (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: JavaScript by any other name is "AJAX"?
  • Next by Date: Re: URGENT issues with CLOSE_WAIT states
  • Previous by thread: Re: Passing values between elements
  • Next by thread: Comparing EOs
  • Index(es):
    • Date
    • Thread