TabInsertRows

Syntax

bool TabInsertRows(TabSheetId tTabSheet, TabInsertDeleteArg tArg)

Parameters

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

tArg. Parameters for adding rows.

Description

The TabInsertRows operation adds rows to table.

Comments

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:

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

Example

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.

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

SOAP response:

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

JSON request:

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

JSON response:

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

Interactive Visual Components