startReportWriterDesigner

startReportWriterDesigner(usercode:      String;
                          securityClass: Class);

The startReportWriterDesigner method of the JadeReportWriterManager class starts the JADE Report Writer Designer application using the user name specified in the usercode parameter and the user-defined subclass of the JadeReportWriterSecurity specified in the securityClass parameter (which can be a null value if you require only the default security).

If the specified user is not allowed to access the JADE Report Writer Designer application, the application is not started.

As the JADE Report Writer Designer application is run in the current process rather than as a separate JADE application, any methods that are called from the query phase have the appropriate context and user objects available (for example, the app system variable).

If you want the current application to still be available while the JADE Report Writer Designer application is in use, you should therefore run a new JADE application of the user-defined schema, with the information required to establish the same user context (for example, as if the current user had logged on to the new application in the same way the user had logged on to the current application), and use this startReportWriterDesigner method to start the JADE Report Writer Designer application on the new JADE application.

The following example shows the use of the startReportWriterDesigner method.

btnDesigner_click(btn: Button input) updating;
vars
    jrwm : JadeReportWriterManager;
begin
    create jrwm transient;
    jrwm.startReportWriterDesigner(txtUsercode.text, MySecurityClass);
epilog
    delete jrwm;
end;