Exercise - Binding Controls
- Add new UIController to the Exercises folder, name the new UIController ShowEmployeesDataInTabs.
- Set the Employees table as the main table
- Add local column type NumberColumn, name TabValue, set the default value to be 1 (use
{}
). - Add a method, name it GetFullName, return type Text, return FirstName and LastName (remember to use trim and add an empty space).
- Build and go to the form designer.
- Add Employee ID and the method GetFullName to the top left of the screen.
- Add a Tab control to the form.
- Set the Data Property of the Tab control to the TabValue NumberColumn in item 3.
- Set the Tab control Properites:
- Set the Values to "1,2,3,4,5".
- Set the DisplayValues to "Personal,Address,Contact,Notes,Extra".
- Set the Style to Flat.
- Add the following columns to the Personal tab:
- LastName.
- FirstName.
- Title.
- TitleOfCourtesy.
- BirthDate.
- HireDate.
- Add the following columns to the Address tab:
- Address.
- City.
- Region.
- PostalCode.
- Country.
- Add the following columns to the Contact tab:
- HomePhone.
- Extension.
- Add the following columns to the Notes tab:
- Notes.
- Add the following columns to the Extra tab:
- ReportTo.
- PhotoPath.
- Save changes to Git.
- Build and test.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com