EmForgeReporting
|
There is implemented hard coded reports like:
These reports allow to review active tasks, finished tasks and etc. Any user can review these reports, but cannot modify it. To fix this problem we are going to replace these reports to some expandable reports -
to this effect we've started support JasperReports
.
So since EmForge-0.22 any user can create/modify a necessary report and use it.
It is very simple! You can use iReport
to design a JasperReport of any type.
See also:
EmForge Reports
page shows a list of available reports and allows to upload a new JasperReport.
When user clicks one of the available reports, a view will be shown to fill the report parameters (if any required exist).
Just specify it in report disign like:
<parameter name="_user" isForPrompting="false" class="java.lang.String"/>
If you want to redefine the default value then use isForPrompting="true" attribute.
| Prefix | Listbox of | Value type | Example |
|---|---|---|---|
| p_ | all projects | java.lang.Long | p_projectId |
| m_<wiki name of required project> | milestones assigned to specified project | java.lang.Long | m_EmForge |
| u_ | all users | java.lang.String | u_actorId |
| up_<wiki name of required project> | users assigned to specified project | java.lang.String | up_EmForge |
| ur_<wiki name of required project and role> | users assigned to specified project and role | java.lang.String | ur_EmForge_Developer |
| us_<site role name> | users assigned to specified site role | java.lang.String | us_ROLE_WIKIWRITER |
| r_ | site roles | java.lang.Long | r_siteRoleId |
| pr_ | priorities | java.lang.Integer | pr_priorityId |
An example of prefix usage:
<parameter name="m_MyProject" isForPrompting="true" class="java.lang.Long">
<parameterDescription><![CDATA[Select a milestone: ]]></parameterDescription>
</parameter>
It will look like:
The example of date type usage:
<parameter name="requiredDate" isForPrompting="true" class="java.util.Date">
<parameterDescription><![CDATA[Just select date: ]]></parameterDescription>
</parameter>
The following ActiveTasksExample.jrxml
file is a simple example of report with several required parameters.
How there are implemented the following permissions:
In future we are planning to expand user permissions and base it on project permissions.
| Last Modified by szakusov 3 months ago |