1 Reply Latest reply on Sep 28, 2006 6:09 AM by Iceborer

    Confirm delete dialog then call CFC

    onnut Level 1
      I have a CFGrid shows information and when user click delete button..
      I want to delete that row of the grid and also delete a record in database.
      the delete function is called through service...which works fine
      BUT i want to have a confirmation dialog before calling the service..if user click OK
      now it's not doing anything when user click OK

      here's the function called when delete button is clicked

      public function submitRemove(recID:Number):Void
      var myClickHandler = function (evt){
      if (evt.detail == mx.controls.Alert.OK){

      alert("Are you sure you want to remove selected record?", "Warning", mx.controls.Alert.OK |
      mx.controls.Alert.CANCEL, myClickHandler);--->