Scroll

Global Event: OnAfterLoadReportsList

Occurs after reports created in Exago have been loaded in the report tree object, for the purpose of allowing additional items to be loaded in the report tree.

Signature     

For custom code the args array is structured as follows:

args[] contains one object: A TreeNodeCollection, a list of TreeNode objects which are used to populate the report tree.

NOTE. The TreeNodeCollection and TreeNode classes are defined in the WebReports.dll library, which is not automatically referenced in the Admin Console. To use this server event, add WebReports.dll as a reference, and include the WebReports.UI.Controls namespace.

For .Net Assemblies the method signature is as follows:

void EventHandlerName(SessionInfo sessionInfo, TreeNodeCollection nodes)

Expected Return

The event expects a void return value.

Example

/* Disable a node */
TreeNodeCollection tree = args[0] as TreeNodeCollection;
string[] nodes = { "Sample Reports" };
TreeNode selected = tree.GetNode(nodes);
selected.Disabled = true;
return null;

Hidden Article Information

Article Author
Exago Development
created 2017-02-21 16:15:12 UTC
updated 2017-06-27 14:37:13 UTC

Labels
Server Events, event handlers, list of server events, load, report tree, reports, after, list, afterloadreportslist, loadreports, reportslist, loadreportslist,
Have more questions? Submit a request