Class RunReport
A command used to execute and run a provided IReport using the UNIQUE_TASK_ID server task
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: LemonEdge.ClientCore.dll
Syntax
public class RunReport : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
RunReport(IRootController, IModelLayoutCommon, Func<IReportBase>)
Createsa new instance of the run report command
Declaration
public RunReport(IRootController root, IModelLayoutCommon host, Func<IReportBase> getReport)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | host | The host this command operates within |
Func<IReportBase> | getReport | A function that returns the report to execute as a UNIQUE_TASK_ID server task |
Methods
GetParameters()
Retrieves the parameters to display to the user for this report.
Requires the report to have a parameter type that inherits ExecuteReportParameter and is marked with the ReportParameterAttribute and has its own view controller inheriting ReportParamController<T>
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
Task<ServerTaskParameter> | The parameters to display to the user for this report |
Overrides
InternalCanExecute(object)
Returns if this command can be executed or not from the client application UI
You must override InternalCanExecute(object?) or InternalCanExecuteAsync(object?) in order to implement if it can be executed
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | If this command can be executed or not from the client application UI |