TabInsertColumns

Syntax

bool TabInsertColumns(TabSheetId tTabSheet, TabInsertDeleteArg tArg)

Parameters

tTabSheet. Moniker of the table, to which columns are added.

tArg. Parameters for adding columns.

Description

The TabInsertColumns operation adds columns to table.

Comments

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:

The operation results in the logical True if columns are inserted successfully.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TabInsertColumns xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>S1!M!S!P1!1</id>
  </tTabSheet>
<tArg xmlns="">
  <index>5</index>
  <count>3</count>
  <type>2</type>
  </tArg>
  </TabInsertColumns>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <TabInsertColumnsResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</TabInsertColumnsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"TabInsertColumns" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"index" : "5",
"count" : "3",
"type" : "2"
}
}
}

JSON response:

{
"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:

Table