RE:SUBMIT Button in New Window

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

RE:SUBMIT Button in New Window

Reddy, Gopikrishna
Hi ,
 
Iam new to Orbeon
Can anybody help me out on the below small requirement?
 
We have 4 text boxes on an x-form beside which we have a hyperlink, on click of the same, the entered data on those 4 text boxes should be passed to a pop-up window (which again has 4 another text boxes). If I again change data on the pop-up window text box and click on submit, the changed values should get passed on to the base x-form text boxes.
 
Thanks in Advance,
K Gopikrishna Reddy
 
This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its 
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately 
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE:SUBMIT Button in New Window

fl.schmitt(ops-users)
Hi Gopikrishna

> We have 4 text boxes on an x-form beside which we have a hyperlink, on
> click of the same, the entered data on those 4 text boxes should be
> passed to a pop-up window (which again has 4 another text boxes). If I
> again change data on the pop-up window text box and click on submit, the
> changed values should get passed on to the base x-form text boxes.

just use a xxforms:dialog - it can reference the same model as the "main
page" does, so you don't have to submit and re-submit the text box
content. You could create an additional instance for the dialog data and
update it using setvalue when the dialog is triggered. When the dialog
is closed, you could again use setvalue to update your main instance
with the dialog data.

HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE:SUBMIT Button in New Window

Reddy, Gopikrishna
Hi I Got ur Logic But how can i do setvalue when dailog is closed because we are not performing any action there.
 
 
Thanks and Regards,
K Gopikrishna Reddy

________________________________

From: Florian Schmitt [mailto:[hidden email]]
Sent: Fri 5/23/2008 4:22 PM
To: [hidden email]
Subject: [ops-users] Re: RE:SUBMIT Button in New Window



Hi Gopikrishna

> We have 4 text boxes on an x-form beside which we have a hyperlink, on
> click of the same, the entered data on those 4 text boxes should be
> passed to a pop-up window (which again has 4 another text boxes). If I
> again change data on the pop-up window text box and click on submit, the
> changed values should get passed on to the base x-form text boxes.

just use a xxforms:dialog - it can reference the same model as the "main
page" does, so you don't have to submit and re-submit the text box
content. You could create an additional instance for the dialog data and
update it using setvalue when the dialog is triggered. When the dialog
is closed, you could again use setvalue to update your main instance
with the dialog data.

HTH
florian




This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

winmail.dat (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE:SUBMIT Button in New Window

Reddy, Gopikrishna
[ops-users] Re: RE:SUBMIT Button in New Window
 
Hi Here you are suggesting to use dialog box but iwant to go for popup window as in dialog box icannot perform any actions,Can u suggest more

From: Reddy, Gopikrishna
Sent: Fri 5/23/2008 5:04 PM
To: [hidden email]
Subject: RE: [ops-users] Re: RE:SUBMIT Button in New Window

Hi I Got ur Logic But how can i do setvalue when dailog is closed because we are not performing any action there.
 
 
Thanks and Regards,
K Gopikrishna Reddy


From: Florian Schmitt [mailto:[hidden email]]
Sent: Fri 5/23/2008 4:22 PM
To: [hidden email]
Subject: [ops-users] Re: RE:SUBMIT Button in New Window

Hi Gopikrishna

> We have 4 text boxes on an x-form beside which we have a hyperlink, on
> click of the same, the entered data on those 4 text boxes should be
> passed to a pop-up window (which again has 4 another text boxes). If I
> again change data on the pop-up window text box and click on submit, the
> changed values should get passed on to the base x-form text boxes.

just use a xxforms:dialog - it can reference the same model as the "main
page" does, so you don't have to submit and re-submit the text box
content. You could create an additional instance for the dialog data and
update it using setvalue when the dialog is triggered. When the dialog
is closed, you could again use setvalue to update your main instance
with the dialog data.

HTH
florian

This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its 
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately 
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE:SUBMIT Button in New Window

fl.schmitt(ops-users)
In reply to this post by Reddy, Gopikrishna
Hi Gopikrishna,

> Hi I Got ur Logic But how can i do setvalue when dailog is closed
> because we are not performing any action there.

the documentation mentions the xxforms-dialog-close event:

http://www.orbeon.com/ops/doc/reference-xforms-2#xxforms-dialog-close

Could this be a solution?


HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: RE:SUBMIT Button in New Window

Reddy, Gopikrishna
 
Hi I Got ur Logic But I dont want to use dialog box I want to use new Pop up Window Can u Suggest me how to do this.
 
Thanks in Advance,
K Gopikrishna Reddy

________________________________

From: Florian Schmitt [mailto:[hidden email]]
Sent: Fri 5/23/2008 5:14 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE:SUBMIT Button in New Window



Hi Gopikrishna,

> Hi I Got ur Logic But how can i do setvalue when dailog is closed
> because we are not performing any action there.

the documentation mentions the xxforms-dialog-close event:

http://www.orbeon.com/ops/doc/reference-xforms-2#xxforms-dialog-close

Could this be a solution?


HTH
florian




This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

winmail.dat (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: RE:SUBMIT Button in New Window

fl.schmitt(ops-users)
Hi Gopikrishna,

> Hi I Got ur Logic But I dont want to use dialog box I want to use new
> Pop up Window Can u Suggest me how to do this.

You could use the xxforms:target attribute on a submission:

http://www.orbeon.com/ops/doc/reference-xforms-2#submission-target
http://www.nabble.com/Re%3A-RE%3ANEW-WINDOW-AS-POPUP%2BXHTML-p17052396.html


HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

FW:Passing Values from JSP TO Xform and Vice Versa

Reddy, Gopikrishna
[ops-users] Re: RE: Re: RE: Re: RE:SUBMIT Button in New Window
 
Hi ,
 
Can anybody help me out on the below small requirement?
 
We have 4 text boxes on an x-form beside which we have a hyperlink, on click of the same, the entered data on those 4 text boxes should be passed to a pop-up window(This will be JSP) (which again has 4 another text boxes). If I again change data on the pop-up window text box and click on submit, the changed values should get passed on to the base x-form text boxes.
 
Thanks in Advance,
K Gopikrishna Reddy


From: Florian Schmitt [mailto:[hidden email]]
Sent: Fri 5/23/2008 5:54 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Re: RE:SUBMIT Button in New Window

Hi Gopikrishna,

> Hi I Got ur Logic But I dont want to use dialog box I want to use new
> Pop up Window Can u Suggest me how to do this.

You could use the xxforms:target attribute on a submission:

http://www.orbeon.com/ops/doc/reference-xforms-2#submission-target
http://www.nabble.com/Re%3A-RE%3ANEW-WINDOW-AS-POPUP%2BXHTML-p17052396.html


HTH
florian

This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its 
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately 
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

message-footer.txt (352 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW:Passing Values from JSP TO Xform and Vice Versa

Alessandro Vernet
Administrator
On Sat, May 24, 2008 at 10:08 PM, Reddy, Gopikrishna
<[hidden email]> wrote:
> We have 4 text boxes on an x-form beside which we have a hyperlink, on click
> of the same, the entered data on those 4 text boxes should be passed to a
> pop-up window(This will be JSP) (which again has 4 another text boxes). If I
> again change data on the pop-up window text box and click on submit, the
> changed values should get passed on to the base x-form text boxes.

To open a window, you can use an xforms:load with a target, and pass
the parameters on the URL as request parameters. Then you can access
the request parameters in JSP and insert them in the page you
generate. That part is OK.

But to pass back parameters to the first window, you will need to use
JavaScript. In JavaScript you can set back the value of XForms
controls with ORBEON.xforms.Document.setValue(). More on this at:
http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-javascript-get-set-value.

Frankly, I am not too fond of those methods as they pose a number of
usability problems: What if users have a pop-up blocker? What if after
opening the pop-up they navigated to another page in the first window?
I think that using a XForms dialog (xxforms:dialog, more on:
http://www.orbeon.com/ops/doc/reference-xforms-2#dialog) is a better
solution.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

FW: Re: FW:Passing Values from JSP TO Xform and Vice Versa

Reddy, Gopikrishna
[ops-users] Re: FW:Passing Values from JSP TO Xform and Vice Versa
Hi as iam new to orbeon how can i do this ,Please help me out in this 
 
Here is my small requirement ::
 
We have 4 text boxes on an x-form beside which we have a hyperlink, on click
 of the same, the entered data on those 4 text boxes should be passed to a
 pop-up window(This will be JSP) (which again has 4 another text boxes). If I
 again change data on the pop-up window text box and click on submit, the
 changed values should get passed on to the base x-form text boxes.

 

Thanks and Regards,

K Gopikrishna Reddy



This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and disclosure or copying of its 
contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately 
by e-mail/phone & delete it from their system without making any copies or disclosing it to a third person.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

message-footer.txt (352 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW: Re: FW:Passing Values from JSP TO Xform and Vice Versa

Erik Bruchez
Administrator
Pop-up windows are usually a pretty bad solution to achieve this. As  
you can see, they cause lots of issues.

We recommend you use xxforms:dialog instead.

But if you can't use xxforms:dialog, then you will have to use some  
JavaScript. See our JavaScript support here:

   http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-javascript

It is not necessarily trivial to do so, but it is doable if you know  
JavaScript well.

-Erik

On Jun 18, 2008, at 4:24 AM, Reddy, Gopikrishna wrote:

> Hi as iam new to orbeon how can i do this ,Please help me out in this
>
> Here is my small requirement ::
>
> We have 4 text boxes on an x-form beside which we have a hyperlink,  
> on click
>  of the same, the entered data on those 4 text boxes should be  
> passed to a
>  pop-up window(This will be JSP) (which again has 4 another text  
> boxes). If I
>  again change data on the pop-up window text box and click on  
> submit, the
>  changed values should get passed on to the base x-form text boxes.
>
> Thanks and Regards,
>
> K Gopikrishna Reddy
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws