bool TabInsertRows(TabSheetId tTabSheet, TabInsertDeleteArg tArg)
tTabSheet. Moniker of the table, to which rows are added.
tArg. Parameters for adding rows.
The TabInsertRows operation adds rows to table.
To execute the operation, in the tTabSheet field specify table moniker and in the tArg field specify parameters for adding 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 inserted successfully.
Below is the example of inserting rows on regular report page. The request contains page moniker and parameters for inserting rows. The response contains whether the operation is executed successfully.
{
"TabInsertRows" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"index" : "5",
"count" : "3",
"type" : "2"
}
}
}
{
"TabInsertRowsResult" : "1"
}
public static bool AddRows(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabInsertRows()
{
tArg = new TabInsertDeleteArg()
{
index = 5,
count = 3,
type = 2
},
tTabSheet = new TabSheetId() { id = moniker }
};
// Add rows
var result = somClient.TabInsertRows(tTab);
return result;
}
See also: