Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..
990 views

link from form to another database or WEB-service

Jump to solution

HI all.

 

I have intresting task but don't know how make it:

 

In ess.do self service man must click fill button of field then he must see information from some database (not HP Service Manager database) and fill information from it in this field.

 

Thanks for your time, Alex.

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

We found solution.

 

in link in JS tab create SOAP request

 

   var uid = "";
   var pas = "";
   var att = null;
   var file = vars.$L_file;
   var url = "http://mb1test:7801/CRMGateWeb/sca/eSearchWS";
   var act = "http://crm.by/CRMGate/search";

   var xml = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sear=\"http://crm.by/CRMGate/search\">"+
                                "<soapenv:Header/>"+
                                "<soapenv:Body>"+
                                "<sear:Search>"+
                                "<ListOfSearchCriteria>"+
                                "<SearchCriteria>"+
                                "<ClientType>Organization</ClientType>"+
                                "<UNP>"+file.room+"</UNP>"+
                                "</SearchCriteria>"+
                                "<EvaluateStatus>true</EvaluateStatus>"+
                                "<EvaluateAddress>true</EvaluateAddress>"+
                                "<EvaluateContacts>true</EvaluateContacts>"+
                                "<EvaluateRezident>true</EvaluateRezident>"+
                                "</ListOfSearchCriteria>"+
                                "</sear:Search>"+
                                "</soapenv:Body>"+
                                "</soapenv:Envelope>"


  var quote = doSOAPRequest( url, act, xml, uid, pas).toXMLString();
  var start = quote.indexOf("<JobTitle>");
  var end = quote.indexOf("</JobTitle>");
  vars.$dol = quote.substring(start+10,end);

 

user input some information in field "room", after click fill on field in variable $dol write information from response. In query link we write some condition that return one result, in field that returns fill we write variabel $dol 

View solution in original post

0 Likes
2 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

You can configure a fill to call a web service to display information from an external system and retrieve it on select, but I know of no way to configure a direct connection to an external database table. 

----------------------------------------------------
Kudos - what, where, how, and why
Want Good Answers? Ask Good Questions...
0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

We found solution.

 

in link in JS tab create SOAP request

 

   var uid = "";
   var pas = "";
   var att = null;
   var file = vars.$L_file;
   var url = "http://mb1test:7801/CRMGateWeb/sca/eSearchWS";
   var act = "http://crm.by/CRMGate/search";

   var xml = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sear=\"http://crm.by/CRMGate/search\">"+
                                "<soapenv:Header/>"+
                                "<soapenv:Body>"+
                                "<sear:Search>"+
                                "<ListOfSearchCriteria>"+
                                "<SearchCriteria>"+
                                "<ClientType>Organization</ClientType>"+
                                "<UNP>"+file.room+"</UNP>"+
                                "</SearchCriteria>"+
                                "<EvaluateStatus>true</EvaluateStatus>"+
                                "<EvaluateAddress>true</EvaluateAddress>"+
                                "<EvaluateContacts>true</EvaluateContacts>"+
                                "<EvaluateRezident>true</EvaluateRezident>"+
                                "</ListOfSearchCriteria>"+
                                "</sear:Search>"+
                                "</soapenv:Body>"+
                                "</soapenv:Envelope>"


  var quote = doSOAPRequest( url, act, xml, uid, pas).toXMLString();
  var start = quote.indexOf("<JobTitle>");
  var end = quote.indexOf("</JobTitle>");
  vars.$dol = quote.substring(start+10,end);

 

user input some information in field "room", after click fill on field in variable $dol write information from response. In query link we write some condition that return one result, in field that returns fill we write variabel $dol 

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.