Get Alternative Report hook

Use this hook to specify an alternative report for the current one. When the current report (the report for which the extension has been created) is opened by a print session, not this report will be opened, but the one returned by this hook. This is useful when the standard LN application opens a report which has not been linked to a session; in case a report is linked to a session, it can be made invisible with the session extension and the alternative one can be added as a custom linked report.

Example:

function extern string get.alternative.report()
{
        domain  tcyesno   ext.spec.report

        import("ext.spec.report", ext.spec.report)
        if ext.spec.report = tcyesno.yes then
                return("txibd040114000")
        else
                return("")
        endif
}

In this example the alternative report is opened if the session field, custom fields can be added in the session extension, ext.spec.report is set to the value “yes”.