Thanks a lot for the quick response..
In query operation i have one more question to the extension of the above..
below is my code in XSJS...
var input1 = $.request.parameters.get('input1');
if (input1 === null) {
// perform first operation.
}
if (input1 !== null) {
// perform second operation.
}
Even though i didn't pass any values to input1 field in the url it is executing the second operation. What should be my IF condition if i want to execute the first operation when i didn't pass any value or filed for input1 in the url.