JavaScript

listObj.deleteTableRowsBulk Method

Syntax

listObj.deleteTableRowsBulk(dataArray)

Arguments

dataArrayArray

An array of primary keys (strings) or row numbers (integers) defining the rows to delete.

Description

Deletes multiple rows from a List control.

Discussion

The deleteTableRowsBulk() method allows you to delete multiple rows from a List control in a single operation.

You can pass an array containing either the primary key values (strings) of the rows you wish to delete, or the zero-based row numbers (integers).

This is the opposite of the addTableRowsBulk() method.

Example:

Example

var lObj = {dialog.object}.getControl('mylist');
var primaryKeysToDelete = ['alpha','beta'];

// Delete rows with primary keys 'alpha' and 'beta'
lObj.deleteTableRowsBulk(primaryKeysToDelete);