Defines a single custom report registered by an app, produced either from a query table or from a JS function that writes the export content. Instances are created by ControllerMappingList's report builder methods and appear as a downloadable attachment, such as a CSV, alongside the app's other resources.

Group: Reports

Implements: TemplateReport, Serializable


Properties

PropertyReturnsDescription
attachmentContentTypeStringMIME type of the generated attachment, for example text/csv. May be null.
attachmentExtensionStringFile extension used for the generated attachment, for example csv. May be null.
configMap<String,String>The configuration values the report was registered with, keyed by name. Never null, may be empty.
descriptionStringFree text description of what the report contains, as supplied when the report was registered. May be null.
functionStringName of the JS function invoked to generate the attachment content, when the report is backed by a named function rather than a query table or a direct function reference. May be null.
functionPtrVarArgFunctionDirect reference to the JS function invoked to generate the attachment content, when the report was registered with an actual function rather than a function name. May be null.
queryTableIdStringIdentifier of the query table used to source the attachment's rows, when the report is backed by a query table rather than a JS function. May be null.
reportIdStringUnique identifier for this report, matching the reportId it was registered with. Used as the lookup key and in the URL of the generated attachment.
reportTemplateStringName of the template used to render the report's own page, as distinct from the generated attachment. May be null if the report has no page of its own.

Methods

getReportId() · getDescription() · getReportTemplate() · getConfig() · getFunction() · getFunctionPtr() · getQueryTableId() · getAttachmentContentType() · getAttachmentExtension()

getReportId()

Returns: String

Unique identifier for this report, matching the reportId it was registered with. Used as the lookup key and in the URL of the generated attachment.

getDescription()

Returns: String

Free text description of what the report contains, as supplied when the report was registered. May be null.

getReportTemplate()

Returns: String

Name of the template used to render the report's own page, as distinct from the generated attachment. May be null if the report has no page of its own.

getConfig()

Returns: Map<String,String>

The configuration values the report was registered with, keyed by name. Never null, may be empty.

getFunction()

Returns: String

Name of the JS function invoked to generate the attachment content, when the report is backed by a named function rather than a query table or a direct function reference. May be null.

getFunctionPtr()

Returns: VarArgFunction

Direct reference to the JS function invoked to generate the attachment content, when the report was registered with an actual function rather than a function name. May be null.

getQueryTableId()

Returns: String

Identifier of the query table used to source the attachment's rows, when the report is backed by a query table rather than a JS function. May be null.

getAttachmentContentType()

Returns: String

MIME type of the generated attachment, for example text/csv. May be null.

getAttachmentExtension()

Returns: String

File extension used for the generated attachment, for example csv. May be null.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.