GetDashboardGxPageSettings

Syntax

DashboardExportPageSettings GetDashboardGxPageSettings(string mon)

Parameters

mon. Moniker of opened dashboard instance.

Description

The GetDashboardGxPageSettings operation gets information panel print options.

Comments

To execute the operation, in the mon field specify moniker of opened information panel instance. The moniker can be obtained on executing the OpenDashboard operation.

The operation results in the obtained print options.

Example

Below is the example of getting information panel print options. The request contains moniker of opened information panel instance. The response contains the obtained settings.

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">
<GetDashboardGxPageSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">DBKCMEPAFHGGGOAEOMNHDEKIAPJLIFDEKIHGCJBHPKMFNJEM!M!S!PDACBALPAFHGGGOAEICMCFDBNGDDKBIPEKLCGKIOKAKHGGDPG</mon>
  </GetDashboardGxPageSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDashboardGxPageSettingsResult 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">
<paperSize xmlns="">
  <width>210000</width>
  <height>297000</height>
  <units>Mkm</units>
  </paperSize>
<margins xmlns="">
  <left>30</left>
  <top>20</top>
  <right>20</right>
  <bottom>20</bottom>
  <units>Mm</units>
  </margins>
  <paperFormat xmlns="">A4</paperFormat>
  <paperOrientation xmlns="">Portrait</paperOrientation>
  <centerHorizontal xmlns="">1</centerHorizontal>
  <centerVertical xmlns="">1</centerVertical>
<scale xmlns="">
  <value>0.8</value>
  <fitToPages>0</fitToPages>
  <pageWidth>1</pageWidth>
  <pageHeight>1</pageHeight>
  </scale>
  </GetDashboardGxPageSettingsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetDashboardGxPageSettings" :
{
"mon" : "DBKCMEPAFHGGGOAEOMNHDEKIAPJLIFDEKIHGCJBHPKMFNJEM!M!S!PDACBALPAFHGGGOAEICMCFDBNGDDKBIPEKLCGKIOKAKHGGDPG"
}
}

JSON response:

{
"GetDashboardGxPageSettingsResult" :
{
"paperSize" :
{
"width" : "210000",
"height" : "297000",
"units" : "Mkm"
},
"margins" :
{
"left" : "30",
"top" : "20",
"right" : "20",
"bottom" : "20",
"units" : "Mm"
},
"paperFormat" : "A4",
"paperOrientation" : "Portrait",
"centerHorizontal" : "1",
"centerVertical" : "1",
"scale" :
{
"value" : "0.8",
"fitToPages" : "0",
"pageWidth" : "1",
"pageHeight" : "1"
}
}
}
public static DashboardExportPageSettings GetDashboardGxPageSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDashboardGxPageSettings()
{
// Moniker for working with visualizer
mon = moniker
};
// Get information panel print options
var result = somClient.GetDashboardGxPageSettings(tGet);
return result;
}

See also:

Working with Information Panels