Re: Re: Passing Values from a WOIFrame?
Re: Re: Passing Values from a WOIFrame?
- Subject: Re: Re: Passing Values from a WOIFrame?
- From: "Daniele Corti" <email@hidden>
- Date: Fri, 3 Nov 2006 17:34:47 +0100
2006/11/3, Chip Myers <email@hidden>:
Hi Daniele:
Yes, I'm trying to pass values from two different WOSubmitButtons which are
inside a WORepetition. Depending on which WOSubmitButtons are clicked, a
combination of flags is set within the WOIFrame, which then affects the
screen which appears outside the WOIFrame.
I'm not sure I completely understand your advice. Are you suggesting to
place the WOSubmitButtons inside a WOForm, which can then send data via the
target attribute?
Well I though you already have the submit button in a form...
Would it be easier to just have an access method which is called from
outside the WOIFrame, which can somehow pull the data from inside the
WOIFrame?
I don't think it's so easy, a frame is not completly accessible from
outside, you have to point a page (using Webobjects a WOComponent)
with "target" to the frame for display the page inside it, eg.
http://developer.apple.com/documentation/WebObjects/DesktopApplications/index.html?http://developer.apple.com/documentation/WebObjects/DesktopApplications/DistributionLayer/chapter_6_section_7.html
if you click on the link in the left frame, a page in the right frame
is opened, this is because the tag in the left frame is <a
href="page_to_display.html" target="right_frame_name">. You have to
target you action outside the WOIFrame if you want to display it
outside.
I admit, I don't know what would happen if you just call a method from
outside the frame, but I think, that's because to set the "action"
bind of WOSubmitButton you need a methos that return a WOComponent,
that it will open the page in the frame...
Listen, if you add to the WOSubmitButton a bind name "target", you
should force the page to be displayed in the frame which the name is
insert in the bind, even I'm not sure.
Try this, ok?
bye, I'll look you answer at home, this night.
Thanks,
MIke
--
Daniele Corti
AIM: S0CR4TE5
Messenger: 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