For custom code the arguments array is structured as follows:
args[]
contains:
SqlObject
class wrapping the execution SQL string in position one.For .NET Assemblies the method signature is as follows:
Note
The
WebReports.Api.Data
namespace needs to be included.
string EventHandlerName(SessionInfo sessionInfo, string executionSql, SqlObject sqlObject)
The OnExecuteSqlStatementConstructed Event expects either a SQL string return, to override the default execution SQL, or null, in which case the execution will continue as normal.