on ‎2007 Aug 09 12:31 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.