On the click of a button in my (SAP) Adobe Interactive Form,
I need to verify the log in user id and password to SAP portal and get the status or something back.
So I chose the following approach with javascript
at button CLICK event in the adobe form
var cPortalUrl = "https://xyz.abcd.com:50001/irj/portal?j_user=<userid>&j_password=<password>";
var cStatus;
var pingportalstatus =
function PortalPing (cPortalUrl){
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function()
{
cStatus = xmlHttp.status;
};
xmlHttp.open("GET", cPortalUrl, false);
xmlHttp.send();
return xmlHttp.status;
};
But I am not getting any status back in cStatus.
Please advise
Thanks,
Bhaskar
Views
Replies
Total Likes
You can try the FormCalc Get() method to receive data from a server.
$host.messageBox(Get("https://xyz.abcd.com:50001/irj/portal?j_user=<userid>&j_password=<password>"))
Views
Replies
Total Likes
I already am using JavaScript for button click
So I can use xfa.host.messagebox
but the thing is:
When the user clicks on the button a pop-up comes up for him to input User Id and password.
This user id and password will be concatenated into the URL mentioned above in the initial post.
So the URL needs to be triggered in a background and return message needs to be captured.
Please advise.
Views
Replies
Total Likes
The JavaScript engine of Acrobat doesn't support theXMLHttpRequest() constructor I'm afraid, so you should try the FormCalc method.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies