Editing
Report Template
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Report Design == Reports can be designed from two places in PRS - first, from the Report Manager, where you create new reports (See [[#Creating a Report|Creating a Report]]). On the right hand-side of this grid, there is a pencil icon, which, if clicked, brings up the report designer. The other place that reports can be designed from is the preview window, brought up by clicking on the report in the ribbon (See [[#Printing Reports|Printing Reports]]). From the preview window, click the pencil icon in the top right, and this opens the designer. If designed this way, there is also data pre-loaded into the report, since you have previewed the report. This means that you can design the report and then preview with data already loaded, assisting you to design based on how the end product will look with data. PRS uses the [https://www.fast-report.com/en/ FastReport] engine and designer for its reporting system, and so details on how to use the report designer can be found on their [https://www.fast-report.com/public_download/docs/FRNet/online/en/UserManual/en-US/Fundamentals.html online documentation]. That being said, there are several important points that can be mentioned here as well. === Previewing === The report can be previewed from the designer. Click on "File -> Preview..." This will preview the current report as you've designed it. Note that this does not save the report, so don't forget to return to the designer and hit the save button to ensure your changes are committed. Also, if you loaded the report from the PRS ribbon, instead of the report manager (see [[#Printing Reports|Printing Reports]]), then this preview will use the data that was loaded when printing the report. [[File:Choose data.png|thumb|Choose Report Data]] === Selecting Data === The data to be loaded into the report comes in the form of tables; each table corresponds to a specific "type" of data. An "Employee" table will contain data for [[Employee|Employees]], and an "Equipment" table contains data about [[Equipment]]. A few of the table names are slightly different than what they might appear in PRS, e.g. the table for [[Task|Tasks]] is named "Kanban". So when you want to generate a report on your tasks, the data you will need will be in the "Kanban" table. Each table has a number of columns which map to the individual properties of an object, so "Kanban" has columns for its "Number", its "Title", and many others. Each row of the table is a specific object. It is important to tell PRS what data you need - there exists a vast number of tables that PRS knows how to load, but you will not want PRS to load all this data, since that can take a while. To choose the data you want to report on, navigate to "Data -> Choose Report Data...". This will bring up a menu from which you can select a number of tables to load data for. Several of these are loaded by default, such as the "CompanyInformation" table, "CompanyLogo" table and the table related to the specific data - generating a report for tasks will automatically load the "Kanban" table. Other tables that ''can'' be loaded (but are not by default) are those that are related to the main object. So, since tasks can have associated equipment items, there is also a "Kanban_Equipment" table. The "Kanban_" prefix represents the fact that this is, in a way, a "child table" of "Kanban" - there is a link between the tables. The report designer knows about these relationships between the tables, so the associated relationships can be modelled using the report designer's concepts of Detail Bands (see the [https://www.fast-report.com/public_download/docs/FRNet/online/en/UserManual/en-US/DataBand/MasterDetailRelations.html documentation]). In order to tell PRS to also load the equipment associated with the tasks, check the little box next to "Kanban_Equipment", so that it displays a tick. Then, next time you preview the report (by closing and re-opening the report), PRS will also load the data required. Note that the "Kanban_Equipment" table does not load every piece of equipment in PRS - it only loads the equipment items that are related to the tasks that you selected - if only one task was selected to generate the report, then the "Kanban_Equipment" table will have at most ''one'' equipment item, since only one piece of equipment is able to be attached to a task. You can also select particular columns from the data selection window, but at this stage this does not cause less data to be loaded - it just prevents it being displayed in the various windows in the report designer and thus removes from view unnecessary fields that clutter up the screen. === Using Data === [[File:Data window.png|thumb|216x216px|Data window]] On the right-hand side of the designer is a "Data" window (if this is not present, click on "View -> Data"). From here you can get data to be displayed in the report. Expand the "Data Sources" menu and you will see a list of the tables you have loaded. Expand any one of them, and then you will see a collection of fields you can select from. To use a field, click and drag from this window over onto the report. For many types of data, this will automatically create a label filled with a placeholder that tells the report engine that you intend to use a data field here. (The syntax for this placeholder is the table name, followed by a dot, followed by the field name, and surrounded in square brackets - e.g., [Kanban.Title] [[File:Data selection arrow.png|left|thumb|110x110px|Data selection arrow]] Also, some data is automatically recognised as an image. For example, if you expand the "CompanyLogo" table, and drag the "Data" field onto the report, it will render as an image using the logo of your company (set in the [[Company Information]] screen). Additionally, dates are recognised as dates, and check boxes (such as the "Private" field for tasks) are rendered as check boxes. The data fields can also be set by clicking the little arrow that appears in the top-right of report objects when hovering over them, as shown in the image. If you click on that, you can select a data field for the object (note that the associated data band must be set, see [https://www.fast-report.com/public_download/docs/FRNet/online/en/UserManual/en-US/DataBand/SimpleListReport/PrintDataRows.html the documentation]).
Summary:
Please note that all contributions to PRS may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
PRS:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Refresh
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information