8 Replies Latest reply on Jun 24, 2010 9:53 PM by BhaskerChari

    How to determine if event.result is empty?

    EvolvedDSM Level 2

      I have a remoteObject call that returns query results (event.result).  I'm interested in knowing how to I can determine if event.result is empty (no returned values).

       

      if(event.result == null) didn't work for me. 

       

      Now I know i could pass the values of the event.result to an arrayCollection and ask if ac.length == 0, but I'd like to avoid this if possible.

       

      Any help is appreciated.  Thanks.