Testing Javascript Code [message #1064960] |
Fri, 21 June 2013 21:45  |
Eclipse User |
|
|
|
Experts,
Here i have a quick question, We are using javascript code for our requirement. Suppose we have written a js code on table. How to test whether it is working or not. Ex:
When we written the SQL query, we are testing in TOAD or some other tools. Like that we have any tool or process to check the javascript code before going to embedded into template.
Usually javascript can execute via html page. but here we need to connect DB.
|
|
|
|
Re: Testing Javascript Code [message #1065312 is a reply to message #1065234] |
Tue, 25 June 2013 06:03  |
Eclipse User |
|
|
|
Yes, i am writing on dataset, example code as follows.
queryText = "Select employeenumber,";
queryText = queryText + "lastname,";
queryText = queryText + "firstname,";
queryText = queryText + "extension,";
queryText = queryText + "email,";
queryText = queryText + "officecode,";
queryText = queryText + "reportsto,";
queryText = queryText + "jobtitle";
queryText = queryText + " from employees";
if (params["P_EMPLOYEENUMBER"].value != null && params["P_EMPLOYEENUMBER"].value != "") {
this.queryText = this.queryText + " where employeenumber >= " + params["P_EMPLOYEENUMBER"].value;
}
|
|
|
Powered by
FUDForum. Page generated in 0.03839 seconds