PrxMetaViewsAddResult PrxMetaViewsAdd(string mon, PrxMetaViewsAddArg tArg)
mon. Moniker of opened regular report instance.
tArg. Parameters for adding a visualizer.
The PrxMetaViewsAdd operation adds a visualizer to regular report.
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.
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.
{
"PrxMetaViewsAdd" :
{
"mon" : "S1!M!S!P1",
"tArg" :
{
"type" : "Grid",
"sourceKey" : "1",
"sliceKey" : "1",
"sheetKey" : "2",
"startCell" :
{
"@T" : "1",
"@L" : "1"
}
}
}
}
{
"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: