PrxMetaViewsAdd

Syntax

PrxMetaViewsAddResult PrxMetaViewsAdd(string mon, PrxMetaViewsAddArg tArg)

Parameters

mon. Moniker of opened regular report instance.

tArg. Parameters for adding a visualizer.

Description

The PrxMetaViewsAdd operation adds a visualizer to regular report.

Comments

The operation adds a visualizer to display data of the specified data source on the specified regular report sheet.

To execute the operation, in the mon field specify the regular report instance moniker, and in the tArg field specify parameters for adding a visualizer.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation results in the information about created visualizer.

Example

Below is the example of creating a new visualizer. The request contains regular report moniker and information that is required to create a visualizer: visualizer type, data source keys and data slice keys, page key, and the initial coordinate where the visualizer is to be placed. The response contains the key of created visualizer.

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">
<PrxMetaViewsAdd xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1</mon>
<tArg xmlns="">
  <type>Grid</type>
  <sourceKey>1</sourceKey>
  <sliceKey>1</sliceKey>
  <sheetKey>2</sheetKey>
  <startCell L="1" T="1" />
  </tArg>
  </PrxMetaViewsAdd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<PrxMetaViewsAddResult 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">
  <sliceKey xmlns="">1</sliceKey>
  <viewKey xmlns="">4</viewKey>
  </PrxMetaViewsAddResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"PrxMetaViewsAdd" :
{
"mon" : "S1!M!S!P1",
"tArg" :
{
"type" : "Grid",
"sourceKey" : "1",
"sliceKey" : "1",
"sheetKey" : "2",
"startCell" :
{
"@T" : "1",
"@L" : "1"
}
}
}
}

JSON response:

{
"PrxMetaViewsAddResult" :
{
"sliceKey" : "1",
"viewKey" : "4"
}
}
public static PrxMetaViewsAddResult AddGrid(string moniker, uint sheetKey, uint sourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new PrxMetaViewsAdd()
{
tArg = new PrxMetaViewsAddArg()
{
type = EaxObjectType.Grid,
startCell = new TabCoord() { L = 1, LSpecified = true, T = 1, TSpecified = true },
sheetKey = sheetKey,
sourceKey = sourceKey,
sliceKey = sliceKey
},
mon = moniker
};
//Add a visualizer
var result = somClient.PrxMetaViewsAdd(tAdd);
return result;
}

See also:

Working With Regular Reports