Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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);
0