The following is a java code snippet which includes a BIRT report in a BIA Report page.
protected Document getBIRTReportData()
throws AppException, InformationalException {
...
reportData = biHelper.getReportData(
PodsConst.kCaseloadSummaryBarChartBIReportName,
reportParameters);
return reportData;
}
The following is a java code snippet which creates a pod with links to new investigation and list of investigation pages.
public Node createPod(final Document workspaceDocument, final Map
<String, Object> contexts)
{
try {
...
PodBuilder pod =
PodBuilder.newPod(workspaceDocument,
PODTYPE.INVESTIGATIONSSUMMARYPOD);
pod.addContent(chart, rc);
return pod.getWidgetRootNode();
} catch (Exception e)
{ throw new AppRuntimeException(e); }
}
The following is java code which gets the investigation summary detailsprotected Document
getBIRTSummary(final String selection)
throws AppException, InformationalException {
...
//Building Report Parameters
Date startDate = Date.getCurrentDate();
Date endDate = Date.getCurrentDate();
Calendar calendar = startDate.getCalendar();
calendar.add(Calendar.MONTH, -CuramConst.gkOne);
startDate = new Date(calendar);
reportParameters.put(
PodsConst.knvestigationSummaryStartDateParameter,
startDate.toString());
reportParameters.put(
PodsConst.knvestigationSummaryEndDateParameter,
endDate.toString());
return biHelper.getReportData(
CuramConst.gkInvestigationsSummaryReportName,
reportParameters);
}