Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse BIRT Report Developer Guide
Previous Page Home Next Page

Previous Next

Providing the user with a list of values

List boxes, combo boxes, and radio buttons are ideal mechanisms for providing a list of choices to a user. The differences between these user interface elements are as follows:

n
Radio buttons occupy as many lines in the Enter Parameters dialog as there are choices. For ease of use, a set of radio buttons should contain fewer than 10 entries. 
n
The list box and combo box appear similar to the user. Both save space in the Enter Parameters dialog. The list box takes up only one line, and the combo box takes up two lines in Enter Parameters. For ease of use, a list box or combo box should contain fewer than 100 values.
n
In addition to presenting a list of choices, the combo box also supports the user typing a value. This feature is useful if the user wants to supply a string pattern. For example, instead of selecting a specific name for a customer name parameter, the user can type M% to get all customers whose names start with M. This technique assumes that the user is familiar with SQL pattern-matching syntax.
n
The list box supports the selection of multiple values. With the combo box and radio buttons, the user can select only one value.

Figure 12‑11 shows an example of an Enter Parameters dialog that displays a list box, combo box, and radio buttons.

Figure 16-13 Three types of selection elements in Enter Parameters

You create a list of values for a list box or a combo box using one of the following techniques:

For radio buttons, you can only create a static list of values. In a static list, you specify the values to display to the report user during report design. In a dynamic list, BIRT retrieves the values from the data source when the report runs.

Create a dynamic list for values that are frequently updated in the data source. New customer names or product names, for example, are often added to a data source. If you create a static list of these values, you have to update the list manually to match the values in the data source.

Creating a static list, however, provides more control over the list of values to display to the report user. For example, you might want to present only certain values to the user, or localize the values.


(c) Copyright Actuate Corporation 2009

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire