Kexi/Tutorials/Reports/Kexi Reports for Beginners/da: Difference between revisions

From KDE UserBase Wiki
(Importing a new version from external source)
(Importing a new version from external source)
Line 33: Line 33:




Now, select the <menuchoice>Save</menuchoice> button to save your query. You will be asked for name of the saved query; enter {{Input|1=neurology}}. In the screen shot below, name this new query is displayed under <menuchoice>Queries</menuchoice> category in the far left pane.
Klik nu på knappen <menuchoice>Save</menuchoice> for at gemme din forespørgsel. Du vil blive spurgt om et navn til den gemte forespørgsel; skriv {{Input|1=neurology}}. I skærmbilledet nedenfor bliver forespørgslens navn vist i kategorien <menuchoice>Queries</menuchoice> i feltet længst til venstre.


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

Revision as of 11:23, 19 July 2011

Other languages:

← Tilbage til Vejledninger/Rapporter
← Tilbage til vejledninger

Dette er en grundlæggende vejledning for begyndere i at lave rapporter i Kexi 2.2 eller nyere.

Note

Du kan klikke på skærmbillederne for at se flere detaljer og klikke på "tilbage"-knappen for at komme tilbage hertil.


Vi begynder med en tabel ved navn masterlb vist i dataformat. I dette eksempel hedder felterne author, title, keywords og så videre. Før vi kan lave en rapport, skal vi lave en forespørgsel.

Vælg kommandoen Query i hovedværktøjslinjens faneblad Create.



I Query Design-visningen vælger du den ønskede tabel fra komboboksen og klikker på knappen Insert. En boks, som repræsenterer den valgte tabel dukker op med en liste af feltnavne. Dobbeltklik på hvert felt du vil have med i din forespørgsel.



Søjlerne i forespørgslen bliver automatisk udfyldt med de felter, du valgte og med tabellens navn, som vist herunder.



Lad os sige, at du vil have alle de dataposter, hvis felt keywords matcher NEUROLOGY med i din rapport. Under Criteria i linjen keywords skriver du

'NEUROLOGY'

(Omgiv navnet med enkelte anførselstegn.)



Klik nu på knappen Save for at gemme din forespørgsel. Du vil blive spurgt om et navn til den gemte forespørgsel; skriv

neurology

. I skærmbilledet nedenfor bliver forespørgslens navn vist i kategorien Queries i feltet længst til venstre.

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.



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.



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



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.



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.



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.