EaxAttachments GetDataAreaGridAttachments(string mon, EaxAttachmentPattern tPattern)
mon. Moniker of the Table visualizer.
tPattern. Operation execution pattern.
The GetDataAreaGridAttachments operation gets a list of table cell attachments.
To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!source key!DataSourceSlices!slice key!Views!table key postfix. The moniker can be obtained on executing the OpenPrxMeta operation. In the tPattern field specify coordinates of the cell, which attachments should be obtained.
The operation results in the obtained list of attachments.
Below is the example of getting a list of attachments added for a table cell. The request contains table moniker and cell coordinates. The response contains the obtained list of attachments.
{
"GetDataAreaGridAttachments" :
{
"mon" : "MEIAHFNGIHOCGOAEIHCLFJLBBEPLGOEELKAMEOCBAIKLGBGC!M!S!PJOILJGNGIHOCGOAEGFPAJAHCFFGJOBPEBIDPPGBPPHEIJJHB!DataArea!DataSources!1!DataSourceSlices!1!Views!1",
"tPattern" :
{
"row" : "3",
"column" : "2"
}
}
}
{
"GetDataAreaGridAttachmentsResult" :
{
"its" :
{
"it" :
[
{
"key" : "8",
"name" : "Data source",
"type" : "URL",
"url" : "https:\/\/rosstat.gov.ru\/statistic",
"date" : "2024-05-15T18:17:43.000",
"user" : "the ADMIN user"
},
{
"key" : "9",
"name" : "Image1",
"type" : "Value",
"fileName" : "Image1.png",
"date" : "2020-04-20T15:00:06.000",
"size" : "3327",
"user" : "the ADMIN user"
}
]
}
}
}
public static EaxAttachments GetDataAreaGridAttachments(string moniker, uint sourceKey, uint sliceKey, uint viewKey, uint cellRow, uint cellColumn)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDataAreaGridAttachments()
{
tPattern = new EaxAttachmentPattern()
{
row = cellRow,
column = cellColumn
},
mon = moniker + "!DataArea!DataSources!" + sourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Views!" + viewKey.ToString()
};
// Get information about cell attachments
var result = somClient.GetDataAreaGridAttachments(tGet);
return result;
}
See also: