GetDeclarationResult GetReportEventsClasses(OdId tObject)
tObject. Moniker of the unit containing regular report event handler.
The GetReportEventsClasses operation gets information about the class that is used used to handle regular report events.
To execute the operation, in the tObject field specify moniker of the repository object that is the unit, which implements regular report event handler. The moniker can be created based on the information about units contained in the meta.assemblies.its field of report metadata.
The operation results in the obtained information about event handler class.
Below is the example of getting information about the class that handles regular report events. The request contains moniker of unit that implements the class. The response contains the obtained information about the class.
{
"GetReportEventsClasses" :
{
"tObject" :
{
"id" : "FGIIKILIDNKGGOAEHKDKIKIBDABHMEBEPKHKKCALJBCOKBMH!M!110929"
}
}
}
{
"GetReportEventsClassesResult" :
{
"result" :
{
"it" :
{
"type" : "Class",
"moduleName" : "Regular report unit",
"name" : "EventsClass",
"typeName" : "ReportEvents",
"access" : "Private"
}
}
}
}
public static GetDeclarationResult GetReportEventsClasses(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetReportEventsClasses()
{
tObject = new OdId() { id = moniker }
};
// Get list of functions in connected units
var result = somClient.GetReportEventsClasses(tGet);
return result;
}
See also: