Developer's Guide :: Displaying Information
You have several ways of display information, depending on the type of application you want to develop.
DBRepeater is well suited on reporting apps or e-commerce like catalogs, because provides a lot of freedom to display data stored on a database.
You can see it as a panel that will repeat itself as many times records are found on the attached dataset. To attach DBRepeater to a dataset, use DataSource property.
If you place inside a Label component, attached to the same DataSource and set the DataField property to a field of that dataset, once you run the application, you will see the label showing the value of the field and repeated as many times records has the dataset.
Any component you put inside the DBRepeater will be repeated and DBRepeater advances one record the dataset each time it shows.
The Kind property of the DBRepeater specify the way the repeater will repeat it self, by default is rkVertical, which shows records on vertical layout. Switching that property to rkHorizontal, will repeat records in horizontal fashion.
The RestartDataset property will make the DBRepeater to issue a first() command for the attached dataset at the start of the repeating process, if by any reason, you want to start in the current record of the dataset, set this property to false.
The Limit property will make the dataset just show that amount of records, being 0 a show-them-all value.
This component allows you to easily make a report by:
- Adding a vertical DBRepeater
- Adding inside that repeater another DBRepeater, set the Kind property to rkHorizontal, RestartDataset to False and Limit to the number of columns you want on your report
- Placing inside the horizontal DBRepeater the fields you want to show