Hi Guys, can you give me tips on how to catch a se...
# suitescript
t
Hi Guys, can you give me tips on how to catch a search load that is returning empty result. I have this catchers
srchContractObj == undefined
srchContractObj.length == 0
srchContractObj.length > 0
But I'm still getting this error message
TypeError: Cannot read property '0' of undefined
l
Assuming srchContractObj is a search object, you can try srchContractObj.runPaged().count === 0
1
👍 1
t
Thanks it worked :)