• 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: David Avendasora <email@hidden>
  • Date: Wed, 29 Mar 2006 17:14:14 +0100

Hi all,

I have this same question, but I want to do this with a Direct To Java Client application. I would THINK that since D2JC is a "true" client server application there should be a simple way, but there doesn't seem to be any way to get it to do it without freezing the interface and going in and modifying the UI code directly.

Just so I don't spend a bunch of time beating my head against the wall looking for a simple way; is there one?

Thanks,

Dave

On Mar 29, 2006, at 1:50 PM, 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:
40gmail.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



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


This email sent to email@hidden



_______________________________________________ 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: Pop Up windows in WebObjects - can i do it
  • Next by Date: Re: Passing values between elements
  • Previous by thread: Re: Passing values between elements
  • Next by thread: Re: Passing values between elements
  • Index(es):
    • Date
    • Thread