TabObjectsCopy

Syntax

TabObjectsCopyResult TabObjectsCopy(TabSheetId tTabSheet, TabObjectsCopyArg tArg)

Parameters

tTabSheet. Table moniker.

tArg. Parameters for copying table objects.

Description

The TabObjectsCopy operation copies table objects.

Comments

The operation copies 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 copied objects. 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 copied objects. To paste, use the TabObjectsPaste operation.

Example

Below is the example of copying the image located on the regular report sheet. The request contains regular report sheet moniker and identifier of copied image. The response contains the byte stream containing the copied 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">
<TabObjectsCopy 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>
  </TabObjectsCopy>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

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

JSON response:

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

See also:

Table