TabDeleteRows

Syntax

bool TabDeleteRows(TabSheetId tTabSheet, TabInsertDeleteArg tArg)

Parameters

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

tArg. Parameters for deleting rows.

Description

The TabDeleteRows operation deletes table rows.

Comments

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:

The operation results in the logical True if rows are deleted successfully.

Example

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.

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">
<TabDeleteRows 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>
  </TabDeleteRows>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

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

JSON response:

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

Table