7 Replies Latest reply on Apr 24, 2013 3:56 PM by steve614

    Clear date field value

      I'm working with an attribute value of field type DATE.  I can successfully utilize a DatePicker to edit the field, however I'd also like the functionality to delete the value.  I can provide the same functionality on a TEXT field by sending an empty string.  For the DATE field, I'm assuming I need to pass something like a nil or NULL value to the field, however this is not working.  Ideas?

      These doesn't work:

      [editFeature.attributes setValue:nil forKey:@"SOURCE_DATE"];  ...  [editFeature.attributes setValue:NULL forKey:@"SOURCE_DATE"];  ...  [editFeature.attributes setValue:@"" forKey:@"SOURCE_DATE"];