For Hyperlinking a report - Please check below configurations - TopicsExpress



          

For Hyperlinking a report - Please check below configurations : Example for hyperlinks so you can drill down to Detail reports. In the following example, you drill down from the Job Plan List report (jobplan.rptdesign) to the Job Plan Details Report (jobplan_print.rptdesign). You can use this as an example when you create your own hyperlinks. Once the target report is in place, use the following steps to create the link: 1 Select the Data element in the source report and choose Hyperlink in the Properties dialog box. Select the ellipse to open the Hyperlink Options dialog. Set the Hyperlink Type to Drill-through 2 Under Select a Target Report, enter the relative path to the linked report. If the report is in the same folder, enter only the report name. If the report is in a different folder, use the relative path. For example, to link from Job Plan List (in the JOBPLAN folder) to Job Plan Details (also in the JOBPLAN folder), enter the following text: ..\JOBPLAN\jobplan_print.rptdesign 3 In the Report Parameters area, select the where parameter. In the Values field, enter a where clause that specifies the relationship between the current row and the linked report. For example, to link from Job Plan List to Job Plan Details, enter the following text: jobplan.jpnum= + row[jpnum] + and jobplan.siteid= + row[siteid] + Debugging To log predefined information about the report, add the following lines to the report initialize method (replace the file path with a valid path): mxReportScriptContext.setDefaultLogLevel(DEBUG); mxReportScriptContext.setDefaultLogFile(c:/temp/myreport.log); These lines are not used at runtime, only when you preview the report from the designer. The log levels IBM supports are DEBUG, INFO, WARN, ERROR, FATAL. To log custom information, you can use the mxReportScriptContext variable throughout your report to get the script logger. scriptLogger = mxReportScriptContext.getReportScriptLogger(); if (scriptLogger.isDebugEnabled()) { scriptLogger.debug(***My Debug Message ****); } Unlike the default logging, the system writes these messages to the log files when you run the report within the system. ReportLogger has the following methods that you can use to log information: boolean isDebugEnabled(); boolean isErrorEnabled(); boolean isFatalEnabled(); boolean isInfoEnabled(); boolean isWarnEnabled(); void debug(Object message); void info(Object message); void warn(Object message); void error(Object message); void fatal(Object message);
Posted on: Fri, 03 Oct 2014 10:40:36 +0000

Trending Topics



Recently Viewed Topics




© 2015