Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..
489 views

process panel process.option in RAD display encountred error in line 1

HI 

 

I have 9.50 service manager on which i am trying to impelment SMS notificatiojn ie on every status change of inciddent a notification would be pushed on their mobile no. 

I am applying through javascript 

but it shows me error "process panel process.option in RAD display encountred error in line 1"

var header = new array;
var smsnotification;
var url = "http://xx.xx.xxx.xxx/API/SendMsg.aspx?uname=xxxxxx&pass=xxxxxx&send=LNTCON&dest=9582462489&msg=hello&priority=1&schtm=2018-09-3 18:30";
var headers = new Array()

smsnotification = doHTTPRequest("GET",url,headers,null,10,10);
print("The result of the doHTTPRequest is \n" + smsnotification

 

Please suggest me on the same where i am getting wrong???

0 Likes
5 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: process panel process.option in RAD display encountred error in line 1

Hello Mitisha

 

Thanks for contacting us

Based on the code that you shared with us, it seems that you are declaring the variable "header" as "array".

Try to do something like this:

var header = new Array();

The word array needs to have the letter "a" capitalize, and it needs the parenthesis signs

Hope this helps

 

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: process panel process.option in RAD display encountred error in line 1

Hey That is helpful information.. thanks 

 

but i am getting this error now with that also...

 

Capture.PNG

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: process panel process.option in RAD display encountred error in line 1

Hi there..

Can you try the below and see...

-========================

var headers = new Array();
var smsnotification;

var reply;
var url = "http://xx.xx.xxx.xxx/API/SendMsg.aspx?uname=xxxxxx&pass=xxxxxx&send=LNTCON&dest=9582462489&msg=hello&priority=1&schtm=2018-09-3 18:30";
var h = new Header("Accept-Encoding", "gzip,deflate");

var hd= new Header();

headers.push(h);

headers.push(hd);

smsnotification = doHTTPRequest("GET",url,headers,null,10,10,10);
print("The result of the doHTTPRequest is \n" + smsnotification);

========================

Thanks

W

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: process panel process.option in RAD display encountred error in line 1

Hey,

 

Now i am getting the error invalid arguments passed in dohttprequest at char 1

0 Likes
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: process panel process.option in RAD display encountred error in line 1

Did you type the code or copied across? I hope you are typing and not copying. SM does not copy the double quotes correctly and throws exceptions.
Try below:


var headers = new Array();
var smsnotification;

var reply;
var url = "http://xx.xx.xxx.xxx/API/SendMsg.aspx?uname=xxxxxx&pass=xxxxxx&send=LNTCON&dest=9582462489&msg=hello&priority=1&schtm=2018-09-3 18:30";
var h = new Header("Accept-Encoding", "gzip,deflate");

var hd= new Header();

headers.push(h);

headers.push(hd);

try

{
smsnotification = doHTTPRequest("GET",url,headers,null,10,10,10);
}

catch(e)
{
print("sms requrst failed with exception \n" + e );
}

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.