Discussions
The return number is always null value
Hi,
I am making a search with script and below is a client code. i want to search the pending leave number. if the number is not '0' or null value, then alert the string. but the number is always ' '(' ' is null but there is nothing in the ''). No matter if there is pending leave in system.
function checkLeaveStatus(){
//alert(1);
if(nlapiGetFieldValue('custrecord325')==1){
var Employee=nlapiGetFieldValue('custrecord324');
var filter=new Array();
filter[0]=new nlobjSearchFilter("isinactive", null, "is", "F");
filter[1]=new nlobjSearchFilter('custrecord344',null,'is','2');
filter[2]=new nlobjSearchFilter('custrecord324',null,'is',Employ ee);