1 Reply Latest reply on Feb 23, 2010 3:51 AM by archemedia

    search through an object

    madhooper Level 1

      Hello All,


      I am getting an object as a result.


      I need to go through the array see if a few elements are null.

      If any of these elements are null I need to display an alert box.


      Here's what I have so far. Please advise.



      if (applicationModel.Unit.Number == null || applicationModel.employee.firstName == null || applicationModel.employee.lastName == null

      || applicationModel.employee.primaryPhoneNumber == null || applicationModel.employee.emailAddress == null){

      Alert.show('Error Retrieving Unit Data', 'Application Error', mx.controls.Alert.OK);