Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347331 - Default parameter is not visible on listbox
Summary: Default parameter is not visible on listbox
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.2.0   Edit
Assignee: Ning Zhang CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
: 350864 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-26 11:04 EDT by Łukasz CLA
Modified: 2012-04-20 03:30 EDT (History)
2 users (show)

See Also:


Attachments
archive with 2 images presenting the issue (26.27 KB, application/x-7z-compressed)
2011-05-26 11:12 EDT, Łukasz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz CLA 2011-05-26 11:04:29 EDT
Build Identifier:  v20100915-1750

My BIRT is:
BIRT Chart Framework Version: 2.6.1.v20100709-7f9T7DFQCnv8nz0gRMa6NG1 Build id: v20100915-1750

I have dynamic string parameter displayed as ListBox with multiple selections allowed. For the list of values retrieved from some source (I have tried xml database and simple xml file) I added one default value. It is string constant e.g. "ALL".
When I generate report there is no "ALL" option available on the list of the parameter. However, when I change display type to ComboBox, that default value became visible and is selected as a first option.

Reproducible: Always

Steps to Reproduce:
1. Add new report parameter with data type string and display type listbox.
2. Make selection list values to dynamic and mark "Allow multiple values" option
3. Add some data set and choose relevant column for display and value
4. Add default value as constant value e.g. string "ALL"
5. save report and view it in browser -> on form with parameter there should be list control, but without default value (all other values from dataset are present).
Comment 1 Łukasz CLA 2011-05-26 11:12:22 EDT
Created attachment 196670 [details]
archive with 2 images presenting the issue

There are two images in the attached archive. One shows parameter definition and second presents how listbox looks. There is no default value presnet on the list.
Comment 2 Xiaoying Gu CLA 2012-04-18 23:19:05 EDT
*** Bug 350864 has been marked as a duplicate of this bug. ***
Comment 3 Ning Zhang CLA 2012-04-20 03:30:49 EDT
Fixed.