Handling return text from a web service
Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"
Re: Handling return text from a web service
If you are on ARS v7.1 or later I would use the Service action (of the Active Link) instead of pushing to a Display Only form. The Service action allows you to map both the inbound and outbound fields just like you do for window open of a popup form. You then change your filter type from submit to service. Fred -Original Message- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Angus Comber Sent: Friday, April 22, 2011 9:42 AM To: arslist@ARSLIST.ORG Subject: Handling return text from a web service ** Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"
Re: Handling return text from a web service
Angus, Instead of having your AL do a Push, have it perform a Service action (assuming you are on the proper version)..map the input in the same way you mapped the push, but on the output, map the fields being set by the web service to fields on the form with the button being pushed.this will get you the response you are looking for. From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Angus Comber Sent: Friday, April 22, 2011 8:42 AM To: arslist@ARSLIST.ORG Subject: Handling return text from a web service ** Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"
Re: Handling return text from a web service
Ah that sounds like a much more convenient way to call a web service. Just tried it and it works well. I guess that for clients with an older version of Remedy they will just have to do without response codes. Many thanks. Also thanks to Fred who also replied. Angus - Original Message - From: LJ LongWing Newsgroups: public.remedy.arsystem.general To: arslist@ARSLIST.ORG Sent: Friday, April 22, 2011 4:14 PM Subject: Re: Handling return text from a web service ** Angus, Instead of having your AL do a Push, have it perform a Service action (assuming you are on the proper version)..map the input in the same way you mapped the push, but on the output, map the fields being set by the web service to fields on the form with the button being pushed.this will get you the response you are looking for. From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Angus Comber Sent: Friday, April 22, 2011 8:42 AM To: arslist@ARSLIST.ORG Subject: Handling return text from a web service ** Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"
Re: Handling return text from a web service
Why would you need a display only form? Wouldnt "Set fields" from "Web-Service" on the actual form work for you? You could use service action or see if this works 1. On regular form, create a GUID field and use Application-Generate-GUID to generate GUID when form is opened for submission. 2. When you push to display only form, push the GUID with it. 3. Once data is returned from web-service on Display only form, Send it back to parent form by doing push fields where 'GUID'=$GUID$. I have not tested it but it should work although its not an efficient way to do it. Thanks Chintan. --- On Fri, 4/22/11, Angus Comber wrote: From: Angus Comber Subject: Handling return text from a web service To: arslist@ARSLIST.ORG Date: Friday, April 22, 2011, 7:41 AM ** Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"
Re: Handling return text from a web service
The way we used to do it was with a real form, and then a push, then a setfields to retrieve the results, then an escalation to manage the records in the real form..real pain. From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Angus Comber Sent: Friday, April 22, 2011 9:51 AM To: arslist@ARSLIST.ORG Subject: Re: Handling return text from a web service ** Ah that sounds like a much more convenient way to call a web service. Just tried it and it works well. I guess that for clients with an older version of Remedy they will just have to do without response codes. Many thanks. Also thanks to Fred who also replied. Angus - Original Message - From: LJ LongWing <mailto:lj.longw...@gmail.com> Newsgroups: public.remedy.arsystem.general To: arslist@ARSLIST.ORG Sent: Friday, April 22, 2011 4:14 PM Subject: Re: Handling return text from a web service ** Angus, Instead of having your AL do a Push, have it perform a Service action (assuming you are on the proper version)..map the input in the same way you mapped the push, but on the output, map the fields being set by the web service to fields on the form with the button being pushed.this will get you the response you are looking for. From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Angus Comber Sent: Friday, April 22, 2011 8:42 AM To: arslist@ARSLIST.ORG Subject: Handling return text from a web service ** Hello I have created an active link on a regular form which pushes fields to a display only form when a button is clicked. A filter on submit on the display only form then calls a web service. This is all working fine. I have mapped the responses from calling the web service to fields in the display only form. But of course the user who clicked the button to invoke the action cannot 'see' any response from the web service. How would I take the response text posted into a field in the display only form back up to a field in the 'calling' form? Or is there another way to do this? Angus _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"