NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Make drop-down box for multiple choices with reporting tool

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
becklery



Joined: 18 Apr 2009
Posts: 58

PostPosted: Tue Nov 10, 2009 3:33 pm    Post subject: Make drop-down box for multiple choices with reporting tool Reply with quote

Background
Drop-down box has many advantages. Such as simplifying data input, avoiding wrong input and realizing the mapping between display value and code, etc. Therefore, it is very common in the input interface of Web report.

Usually, drop-down box is made for single choice. But in real business, the value of a field may have several choices. In this condition, a drop-down box for multiple choices will be helpful.

Take an employee information report for an example. An item is specialty foreign languages, and someone may be good at several foreign languages. If users have to design a column for each foreign language, the structure of the report will make users crazy. Then, if users can make a drop-down box for multiple choices, and those selected foreign languages can be saved in only one field, the problem will be solved.

Difficulty
It seems that the function is easy to realize. But this is not the case. Main difficulties are as follows:

1. The data submitted from multiple choices box to background is an array. Before saving it into database, programmers have to write program to transform it to a string separated by comma.

2. The data saved in database is a string. Before modifying the data in multiple choices box, programmers have to write program to transform the string to an array, and then display it in the input interface.

3. When there are too many options, drop-down box will be inefficient. In this condition, a drop-down tree will be helpful. However, as leaf node allows multiple choices, and branch node doesn’t allow doing this, programmers have to set different properties for them. Therefore, it is much more difficult.

Solution
As a professional Web reporting tool, RAQ Report does everything to make users feel convenient. With thorough consideration of corresponding detail, RAQ Report provides a multiple choices option for many edit styles directly. Such as drop-down list, drop-down dataset, and drop-down tree, etc. With this wonderful function, users can realize multiple choices easily.

Easy Operation
1. Set Report style as Row report and set Input type as Input Report. As shown below:


2. Define the edit style of the report. Such as drop-down list, drop-down dataset, and drop-down tree, etc.


3. Check the Multi Selection option in the properties box of edit style.

Graphic Illustration


This post is from freezea's blog. You are welcome to cc it anywhere, and please indicate the source.

If you would like to read more articles about reporting tool, you are also welcome to refer to my blog.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo