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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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