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