Kexi/Handbook/Building Simple Databases/Designing Forms/Assigning data sources/da: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
==== | ==== Tildel datakilder ==== | ||
The fields you inserted have no data source assigned yet, so these are not able to display information from the database. To assign data source, use the <menuchoice>Data Source</menuchoice> tab of the '''Property Editor''' pane. | The fields you inserted have no data source assigned yet, so these are not able to display information from the database. To assign data source, use the <menuchoice>Data Source</menuchoice> tab of the '''Property Editor''' pane. |
Revision as of 18:39, 10 April 2012
Tildel datakilder
The fields you inserted have no data source assigned yet, so these are not able to display information from the database. To assign data source, use the
tab of the Property Editor pane.The very first step is to specify the form's data source, i.e. a place the displayed data will be fetched from. As mentioned above, you will use table Persons as a data source for your new form.
- Click on the form's surface, as you will alter its properties.
- Switch to the tab and enter persons table name in the Form's data source drop down list. Alternatively, you can select this name from the drop down list.
You have assigned form's data source. Now you need to do specify widget's data source.
- Click the first text field widget at the top of the form.
- In the tab of the property pane enter field name name in the Widget's data source drop down list. Alternatively, you can select this name from the drop down list.
- Click on next text field widget and enter surname as the data source.
- Enter data sources for street, house_number and city text fields in a similar way.
You can now save the form's design (this is not mandatory to test the form in action). To save, click the
toolbar button. Upon saving you will be asked for entering the form's name. Enter Persons as caption and click the button. The form's name will be filled automatically.This is the right moment for testing your form. Click the
toolbar button. Unless you made a mistake while entering data sources, you should see the form's fields filled with data from the Persons table.