Kexi/Tutorials/Reports/Kexi Reports for Beginners

Jump to: navigation, search
Other languages:
dansk • ‎English • ‎українська

← Back to Report Tutorials
← Back to Tutorials

This is a basic beginner's guide to making a report using Kexi 2.2 or newer.

Note-box-icon.png
 
Note
You may click on the screen shots below to see more detail, and click the "Back" button to return to this display.


We begin with a table named masterlb shown in data format. In this example, the fields are named author, title, keywords, and so on. Before making a report, we create a query.

Select Query command from the Create tab of the main toolbar.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Create Query.png


In the Query Design view, select the desired table from the combo box and click the Insert button. A box representing the selected table appears with list of field names. Double-click on each field you want in your query.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Insert Fields for Query.png


The query columns will automatically fill with your field selections and with the table name, as shown next.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Insert Fields for Query2.png


Let's suppose that, for your report, you want all the records matching NEUROLOGY in the field keywords. Under Criteria on the keywords line,type in
'NEUROLOGY'
(Enclose the name in single quotes.)


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Query Keyword.png


Now, select the Save button to save your query. You will be asked for name of the saved query; enter
neurology
. In the screen shot below, the name of this new query is displayed under Queries category in the far left pane.

Next, to create new report that will display data defined by the query, select the Report command from the Create tab of the main toolbar.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-New report.png


Click on the tab with database icon, to the right of Properties. You will then be able to select an internal source for your report. The new query will be among the choices. Select it, and press the Set Data button.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Set Data.png


At this point, before entering your data, you may wish to click Edit Sections button to create a header and other format options:


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Edit report sections.png


You may wish to put a label in your header. To do so, click on Label command from the Report Design tab of the main toolbar and then click in the Report Header area.

Notice that in the Property Editor you can enter your own Caption to replace the word Label. You have many options for formatting the size, position, font, etc.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Insert Label.png


To enter fields into the body of your report, click on Field command in the Report Design tab of the main toolbar and then click in the Detail section. In the Property Editor, pressing on the Data Source property combo box displays a list of the fields provided by your query. For each field you create in the Detail section, select desired field from the Data Source list. This binds the fields on your report to your data.


Kexi-Tutorials-Reports-Kexi Reports for Beginners-Set label datasource.png


Again, there are many formatting options. Save your report using the Save button. Before you switch to data mode, if you have set the data for the first time, you may have to close and re-open the report [this may be a bug that will be fixed in later versions].

When you switch to data mode, you have several options, including Print command. Your printed report should look great!


Author undisclosed. Text adopted and edited by jstaniek.


This page was last modified on 19 July 2011, at 10:58. Content is available under Creative Commons License SA 4.0 unless otherwise noted.