cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HTML - Business Transaction - Xacute Query

Former Member
0 Likes
292

I have a problem in my HTML/JavaScript calling an Xacute query. My business transaction gives me the expected results. My Xacute query gives me the correct results. However, when I run the HTML, I'm getting an error. The error does not display on the screen. Instead blanks display on the screen. I've been looking at it for a couple of days. I can't see the problem. Any help you could provide would be greatly appreciated.

Here's my JavaScript code:

document.get_oper_cmd.getQueryObject().setParam(1,order);

document.get_oper_cmd.getQueryObject().setParam(2,WrkCntr);

// Execute the get operations applet (DSH_GET_OPER_DET_XQRY)

document.get_oper_cmd.executeCommand();

//If there are errors

if (document.get_oper_cmd.getLastError());

//Display the error then leave

{alert(document.get_oper_cmd.getLastError());

alert("Errors")

return;

}

When it runs - I get an alert that is blank, and then an alert that has "Error" assigned to it.

Thank you for the help,

Michelle

View Entire Topic
Former Member
0 Likes

Hi Michelle,

Are you seeing any errors in the Java Console? I would code it like this:

if(document.get_oper_cmd.executeCommand()) // if successful

alert("Success");

else

alert(document..get_oper_cmd.getLastError());

Have you alerted your order and WrkCntr variables to make sure they contain valid values?

Kind Regards,

Diana Hoppe