Translate this pageOther languages:English • dansk Assigning data sources The fields you have inserted on the Form have no data source assigned and are not yet able to display information from the database. To assign a data source we will use the (Data Source) tab of the Property Editor pane. The very first step is to specify the data source for the Form as a whole. i.e. the location from where all of the displayed data will be fetched. As mentioned above, you will use the Persons table as the data source for the new form. Click on the form's surface, as you will alter its properties. Switch to the (Data Source) 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 the form's data source. The next step is to specify each widget's data source. Click the first text field widget at the top of the form. In the (Data Source) tab of the property pane enter field name name in the Widget's data source drop down list. More conveniently, you can select this name from the drop down list. Click on the 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, but is recommended). To save, click the toolbar Save button. Upon saving you will be asked to enter the form's name. Enter Persons as caption and click the OK button. The form's name will be filled in automatically. This is the right moment for testing your form. Click the Data toolbar button. Unless you made a mistake while entering the data sources, you should see the form's fields filled with data from the Persons table. Note * If you want to remove widget's data source assignment for a form widget, you can use the button in the Widget's data source box. Use the (Go to selected form's data source) button to select appropriate table or query in the Project Navigator, so you can quickly open a table or query being the data source of the form. ← Inserting widgets - text fields ↑ Back to menu ↑ Inserting text labels → Retrieved from "https://userbase.kde.org/index.php?title=Kexi/Handbook/Building_Simple_Databases/Designing_Forms/Assigning_data_sources/en&oldid=351362" Categories: KexiTutorials This page was last edited on 28 August 2015, at 15:35. Content is available under Creative Commons License SA 4.0 unless otherwise noted.