TabDeleteColumns

Syntax

bool TabDeleteColumns(TabSheetId tTabSheet, TabInsertDeleteArg tArg)

Parameters

tTabSheet. Moniker of the table, in which columns are deleted.

tArg. Parameters for deleting columns.

Description

The TabDeleteColumns operation deletes table columns.

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 deleted successfully.

Example

Below is the example of deleting columns on regular report page. The request contains page moniker and parameters for deleting columns. The response contains whether deletion was successful.

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">
<TabDeleteColumns 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>1</type>
  </tArg>
  </TabDeleteColumns>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <TabDeleteColumnsResult 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</TabDeleteColumnsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

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

JSON response:

{
"TabDeleteColumnsResult" : "1"
}
public static bool DeleteColumns(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabDeleteColumns()
{
tArg = new TabInsertDeleteArg()
{
index = 5,
count = 3,
type = 1
},
tTabSheet = new TabSheetId() { id = moniker }
};
// Delete columns
var result = somClient.TabDeleteColumns(tTab);
return result;
}

See also:

Interactive Visual Components