External http (URL) call in Javascript

 2 Replies
 1 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Sreenivasa Komma
Basic Member Send Private Message
Posts: 19
Basic Member

Hi

Current project has a need: When a user clicks a button called "validate", it should execute an external  url http://externalServer:port/URL

That http call executes a Java program on external system and returns a string. i would like to receive the return value in a Design Studio javascript variable and continue with remaining Lawson logic.

Any ideas how this can be done.

Thank you in advance..

-Sreeni

Dwightd
Basic Member Send Private Message
Posts: 12
Basic Member
Have you looked at the WebRun node? I have used it successfully to access an external site and return data to the flow...
Deleted User
New Member Send Private Message
Posts: 0
New Member

WebRun is ProcessFlow.  For a Design Studio formlet you can use the http request just as how AGS and DME calls do:

var rtnData = portalWnd.httpRequest("externalserver:port/URL");

The problem is if the external server requires authentication and is not part of the SSO configuration of Lawson.