Share via


FormDataSource.deleteMarked Method

Deletes all marked (selected) records from a data source.

Syntax

public void deleteMarked()

Run On

Client

Remarks

If no records have been selected, the FormDataSource.delete method is executed.

The operation can be interrupted by pressing CTRL+BREAK.

The deleteMarked method can be overridden on a form data source. Right-click the Methods node under the data source, and then select Override Method > deleteMarked.

Examples

The following example overrides the deleteMarked method to let users confirm whether they want to delete the marked records.

public void deleteMarked() 
{ 
    if (Box::yesNo("@SYS79428", DialogButton::Yes, "@SYS79319")) 
        super(); 
}

See Also

FormDataSource Class

FormDataSource.markRecord Method

FormDataSource.delete Method