TabObjectsCut

Syntax

TabObjectsCopyResult TabObjectsCut(TabSheetId tTabSheet, TabObjectsCopyArg tArg)

Parameters

tTabSheet. Table moniker.

tArg. Parameters for cutting table objects.

Description

The TabObjectsCut operation cuts table objects.

Comments

The operation cuts table objects to the clipboard to further paste them to the other position in the current or other table. To execute the operation, in the tTabSheet field specify table moniker, and in the tArg.ids field specify array of identifiers of objects to be cut. The moniker can be based on the moniker of opened object instance, which table is worked with.

The operation results in the byte stream of cut objects. To paste, use the TabObjectsPaste operation.

Example

Below is the example of cutting the image located on the regular report sheet. The request contains regular report sheet moniker and identifier of the image to be cut. The response contains the byte stream containing the cut image.

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">
<TabObjectsCut xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>S1!M!S!P1!1</id>
  </tTabSheet>
<tArg xmlns="">
<ids>
  <it>PrxPicture</it>
  </ids>
  </tArg>
  </TabObjectsCut>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<TabObjectsCutResult 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">
  <data xmlns="">egAAAAIAAAABAAAAAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAAiXED7wgJCwB5FQShcT0EFAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAABAAAABQBAAACAgAAAAIBAAAAAgIAAAACCgAAAAL/////CgECAQAAAAXvAAAAAgAAAO8AAAA0AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAEdJRjg5YRAAEACDAAAAAAD////7+/v4+Pjp6enc3Nzb29vQ0NDIyMj///8AAAAAAAAAAAAAAAAAAAAAAAAh/wtORVRTQ0FQRTIuMAMBAQAAIfkEAQAACQAsAAAAABAAEAAACFUAEwgcSLCgwYEEDh40gMCAQoIGDgw44PBhRAEBBFBUeDGAR40VIR7A6PHjxoEMESAoULKAyoYHEZRE8FCgTI80a94MkPPhzp4Kf9ZMIFTnS6BDDQYEADsAAAAAAAAAAAIAAAAwADoAAAAAAA==</data>
  </TabObjectsCutResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"TabObjectsCut" :
{
"tTabSheet" :
{
"id" : "S1!M!S!P1!1"
},
"tArg" :
{
"ids" :
{
"it" : "PrxPicture"
}
}
}
}

JSON response:

{
"TabObjectsCutResult" :
{
"data" : "egAAAAIAAAABAAAAAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAoAAABQAHIAeABQAGkAYwB0AHUAcgBlAAAiXED7wgJCwB5FQShcT0EFAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAABAAAABQBAAACAgAAAAIBAAAAAgIAAAACCgAAAAL\/\/\/\/\/CgECAQAAAAXvAAAAAgAAAO8AAAA0AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAEdJRjg5YRAAEACDAAAAAAD\/\/\/\/7+\/v4+Pjp6enc3Nzb29vQ0NDIyMj\/\/\/8AAAAAAAAAAAAAAAAAAAAAAAAh\/wtORVRTQ0FQRTIuMAMBAQAAIfkEAQAACQAsAAAAABAAEAAACFUAEwgcSLCgwYEEDh40gMCAQoIGDgw44PBhRAEBBFBUeDGAR40VIR7A6PHjxoEMESAoULKAyoYHEZRE8FCgTI80a94MkPPhzp4Kf9ZMIFTnS6BDDQYEADsAAAAAAAAAAAIAAAAwADoAAAAAAA=="
}
}
public static TabObjectsCopyResult CutTabObjects(string moniker, string[] objects)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabObjectsCut()
{
tTabSheet = new TabSheetId() { id = moniker },
tArg = new TabObjectsCopyArg()
{
ids = objects
}
};
// Cut table objects
var result = somClient.TabObjectsCut(tTab);
return result;
}

See also:

Table