issue using the http services

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

issue using the http services

thiyasri23
I have done a simple user demo for a client where she can call upon a website on the selection of the button ( ie submit)
But for some reason the website is not coming up

I set

Service Name

onclickcreateuser
Choose a unique name for this service
Resource URL  http://www.chirokomphas.com

HTTP URL at which the service reside

Method GET

Serialization none

URL Parameters
Name    - left blank

Default Value  left blank

 Remove Test   Save or Cancel

when I test it it come up green test results

but when I test it with runner - nothing pops up

I have set up the action
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

Alessandro  Vernet
Administrator
Hi Thiya,

I imagine you've been using the HTTP Services in Form Builder for this, correct? HTTP services are designed to enable your form to call services in the back-end, and thus the result from a service isn't sent to the browser, but instead can be used, say, to populate fields, using Actions.

If you'd like to have a link to a page in your form, I'd recommend you create an Explanatory Text, and there put the link. Is this something that could work for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

thiyasri23
Hi Alex

Understand this so if the I want to for example create a menu screen with the submit button and when this is selected it will go to another form for the customer to insert data is this workable in its simple form.

ie 

Service Name

LHR
Choose a unique name for this service
Resource URL

/fr/brexit/voting/new
HTTP URL at which the service reside

Method                                           Serialization
GET                                                   None
URL Parameters
Name                                                      Default Value


and the action editor

Actions Editor
Choose a unique name for this action
Event (on a control or global) to react to
Service to call when the event happens
Set Service Request Values
Set Response Control Values



In this case when the LHR button is selected it should go fire the form /fr/brexit/voting/new is this correct?

Control Settings
E.g.: "first-name"
Options










On Mon, Aug 1, 2016 at 5:45 PM, Alessandro Vernet <[hidden email]> wrote:
Hi Thiya,

I imagine you've been using the HTTP Services in Form Builder for this,
correct? HTTP services are designed to enable your form to call services in
the back-end, and thus the result from a service isn't sent to the browser,
but instead can be used, say, to populate fields, using Actions.

If you'd like to have a link to a page in your form, I'd recommend you
create an Explanatory Text, and there put the link. Is this something that
could work for you?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/issue-using-the-http-services-tp4661680p4661682.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--
Warm regards

Sri

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

Alessandro  Vernet
Administrator
Hi Thiya,

Are you saying that you would like the user to be taken to another screen when the button is clicked? If that is the case, then you should use a process instead. For more on this, see:

http://doc.orbeon.com/form-runner/advanced/buttons-and-processes/

Is this something that would make sense for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

thiyasri23
Hi Alex

Sorry this is not what I want. I want the user to select a button on the first form which is a menu type screen and based on which button he selects ie if he selects "heathrow" then the screen should to go to the form associated with heathrow  


This is the menu screen 


Delete ControlControl Settings


and when the customer selects either heathrow or gatwick it then goes ti the entry form below


Delete ControlControl Settings

On Mon, Aug 1, 2016 at 11:10 PM, Alessandro Vernet <[hidden email]> wrote:
Hi Thiya,

Are you saying that you would like the user to be taken to another screen
when the button is clicked? If that is the case, then you should use a
process instead. For more on this, see:

http://doc.orbeon.com/form-runner/advanced/buttons-and-processes/

Is this something that would make sense for you?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/issue-using-the-http-services-tp4661680p4661686.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--
Warm regards

Sri

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

Alessandro  Vernet
Administrator
Hi Sri,

With the "buttons and processes", you can have a "Heathrow" and "Gatwick" buttons at the bottom of the form that when clicked each take you to another different form to fill out. But that doesn't seem like a very typical UI.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

thiyasri23
Hi Alex 

Yes this is what the clients has requested and is that not feasible because I followed the instruction and although no error was displayed the actual link or call off to the other form is not working. 

I set up the the action editor as requested and also linked it to the service call which was set up with the URL for the form to be called up and the GET method. 

could you advice why this does not work 

Choose a unique name for this action
Event (on a control or global) to react to
Service to call when the event happens
Set Service Request Values
Set Response Control Values














































On Tue, Aug 2, 2016 at 10:18 PM, Alessandro Vernet <[hidden email]> wrote:
Hi Sri,

With the "buttons and processes", you can have a "Heathrow" and "Gatwick"
buttons at the bottom of the form that when clicked each take you to another
different form to fill out. But that doesn't seem like a very typical UI.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/issue-using-the-http-services-tp4661680p4661689.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--
Warm regards

Sri

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: issue using the http services

Alessandro  Vernet
Administrator
Hi Sri,

If you really need to have different forms, and butons pointing to those forms, you need to use the Buttons and Processes feature (not Services and Actions). See:

https://www.google.com/?ion=1&espv=2#q=site%3Adoc.orbeon.com%20buttons

And of coure, let me know if anything isn't quite clear.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet