Delete Marked Customers

Description

Operations perform maintenance and management functions on your database. You can define and run an operation immediately, or you can define and save an operation to be run as Needed. When run, the Delete Marked Customers operation removes all marked customer records from the AlphaSports database. Follow these steps to create a comparable operation.

Procedure: Create and Save a Delete Marked Records Operation 

  1. Open the Control Panel and click the Operations tab.

  2. Click New to display the Create New Operation dialog box.

  3. Select "Delete records" from the Select Operation list.

  4. Select "customer" from the Select Table/Set list.

  5. Click Create Using Genie.

    images/AL_operation_delete_marked_record_1.png
  6. Click Selected Records under Select records to delete.

  7. Select "Marked/Un-Marked records" from the list.

  8. Click Next >.

    images/AL_operation_delete_marked_record_2.png
  9. Since the point of the design effort is to create a re-usable operation, select the second option button: Run the Delete Records operation now, but first save the Delete Records definition.

  10. Click Finish.

    images/AL_operation_delete_marked_record_3.png

Procedure: Run an Operation from a Button 

This procedure uses Action Scripting to delete all marked records from the Customer table.

  1. Sketch a button on the form.

  2. Enter the button's name in the Label field.

  3. Click the Use Action Scripting option button.

  4. Click Launch Script Editor.

  5. Click Add New Action.

  6. Select "Operations" in the Category list.

  7. Select "Run Saved Operation" in the Action list and click OK.

    images/AL_operation_run_1.png
  8. Select "Delete/Mark/Unmark records" in the Select Operation Type list.

  9. Select "Delete Marked Customers" ( to see how it was created ) in the Operation Name list.

  10. Click Next >.

    images/AL_operation_run_2.png
  11. Click Next > and Finish.

    images/AL_operation_run_3.png
  12. Click the 'X' button and Save All.

    images/AL_operation_run_4.png

Limitations

Desktop Applications Only

See Also