Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Starting a service automatically from a validation script

Is it possible to start off a service from a javascript running on the page or as part of form validation ?

When the user is filling out a form, based on the form field validation script I want to be able to invoke a new service. The javascript could also be a page validation script, and so I could do the same validation based on DOM. Bottom line is that I am seeking a way to launch a service and have the service form presented to the browser where this javascript is running.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

The approach might depend a

The approach might depend a bit on your use case but one way is to submit a request through the Requisition API (RAPI) through a JavaScript XHR HTTP POST, I believe a similar technique is used in some of the IAC portlets to submit services such as Power Up and Power Down without launching an order form.

The Requisition API is documented in the IntegrationGuide but you can access the WSDL under the following url: http://<ServerName>/RequestCenter/webservices/wsdl/RequisitionService.wsdl

Alternatively, if you just want to show a new order form in a popup, you can make use of the GreyBox library that is loaded using the GB_showFullScreen function to launch a service in a popup window, to achieve this though you would need to know the service ID to enter in the URL.

Hope this helps.

1 REPLY
New Member

The approach might depend a

The approach might depend a bit on your use case but one way is to submit a request through the Requisition API (RAPI) through a JavaScript XHR HTTP POST, I believe a similar technique is used in some of the IAC portlets to submit services such as Power Up and Power Down without launching an order form.

The Requisition API is documented in the IntegrationGuide but you can access the WSDL under the following url: http://<ServerName>/RequestCenter/webservices/wsdl/RequisitionService.wsdl

Alternatively, if you just want to show a new order form in a popup, you can make use of the GreyBox library that is loaded using the GB_showFullScreen function to launch a service in a popup window, to achieve this though you would need to know the service ID to enter in the URL.

Hope this helps.

46
Views
0
Helpful
1
Replies