bool TabDeleteRows(TabSheetId tTabSheet, TabInsertDeleteArg tArg)
tTabSheet. Moniker of the table, in which rows are deleted.
tArg. Parameters for deleting rows.
The TabDeleteRows operation deletes table rows.
To execute the operation, in the tTabSheet field specify table moniker, and in the tArg field specify parameters for deleting rows. The moniker can be based on the moniker of opened object instance, the table of which is worked with, following the rules:
'Express report instance moniker'!Tab. Express report table (if express report has one sheet).
'Express report instance moniker'!Sheets!'Sheet key'!Tab. table of specified express report sheet (if express report has several sheets).
'Workbook instance moniker'!Tab. Workbook table (if workbook has one sheet).
'Workbook instance moniker'!Sheets!'Sheet key'!Tab. Table of specified workbook sheet (if workbook has several sheets).
'Workbook instance moniker'!CorrTab. Table with correlation matrix.
'Workbook instance moniker'!CoeffTab. Table with equation coefficients.
'Workbook instance moniker'!WeightsTab. Table with weight matrix.
'Regular report instance moniker'!Sheet key. Table of specified regular report sheet.
The operation results in the logical True if rows are deleted successfully.
Below is the example of deleting rows on regular report page. The request contains page moniker and parameters for deleting rows. The response contains whether rows are deleted successfully.
{
"TabDeleteRows" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"index" : "5",
"count" : "3",
"type" : "1"
}
}
}
{
"TabDeleteRowsResult" : "1"
}
public static bool DeleteRows(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabDeleteRows()
{
tArg = new TabInsertDeleteArg()
{
index = 5,
count = 3,
type = 1
},
tTabSheet = new TabSheetId() { id = moniker }
};
// Delete rows
var result = somClient.TabDeleteRows(tTab);
return result;
}
See also: