Hi Krishna,
Thank you so much for your quick response!
This really makes no sense; But yes, like you said, it always helps to have a second pair of eyes run over the script to see that there isn't something blatantly wrong that I might be missing; here's my version of the script:
function processMSKEYS(Par){
Par.get("USERLIST"));
uErrMsg(1,"Filters passed to the script: " + Par.get("USERLIST"))
var userArray = Par.get("USERLIST").split("\n");
var userFilter = "";
var tempCount = 0;
while(tempCount < userArray.length)
{
if(tempCount < userArray.length - 1)
userFilter += "'" + userArray[tempCount].toUpperCase() + "',";
else
userFilter += "'" + userArray[tempCount].toUpperCase() + "'";
tempCount++;
}
uErrMsg(1, 'this is the user filter now: '+ userFilter);
var userMSKEYSQL = "SELECT MSKEY FROM idmv_value_ext_active WITH (NOLOCK) WHERE ATTRNAME = 'MSKEYVALUE' AND SEARCHVALUE IN ("+userFilter+") ";
uErrMsg(1, 'this is the SQL to be executed: '+ userMSKEYSQL);
var mskeyResult = uSelect(userMSKEYSQL);
uErrMsg(1, 'MSKEY values of filters passed: '+ mskeyResult);
}
Thanks a ton!
Best regards,
Sandeep