Re: Passing values between elements
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