Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 203940

Summary: [Parameter usability] Support to set multiple default values when create list-box parameter[0705]
Product: z_Archived Reporter: Tianli Zhang <tzhang>
Component: BIRTAssignee: Haojun Chu <hchu>
Status: VERIFIED FIXED QA Contact: mindan xu <mindan.xu>
Severity: enhancement    
Priority: P3 CC: bluesoldier, jerlich, lchan, mwu, rkanguri, rlu, wenfeng.fwd, wyan, zqian
Version: 2.2.0Keywords: plan
Target Milestone: 2.5.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard: Non-Auto
Bug Depends on: 264300    
Bug Blocks: 267323    

Description Tianli Zhang CLA 2007-09-19 05:17:12 EDT
Description:
Support to set multiple defualt values when create list-box parameter[0705]

Build number: 
2.2.1.v20070919-0630

Steps to reproduce:
1, New a dataset
2, New a list-box parameter and check the Allow Multiple Values
3, Set the default value of one value
4, Select another value and set as default value

Expected result:
Be able to set multiple default values

Actual result:
Only can set one default value
Comment 1 Tianli Zhang CLA 2007-10-11 22:16:28 EDT
Change the severity to enhancement, there is a case that I specify a IN filter in dataset and the value refer to a multiple value selected paremeter and the parameter has some static values. When preview the dataset, only the default value can be previewed and I hope to set multiple default value to see more the preview results in dataset. 

Regards!
Comment 2 Zhiqiang Qian CLA 2007-10-16 01:31:43 EDT
Has viewer any plan to support this? This also requires model support.
Comment 3 Rima Kanguri CLA 2007-12-12 14:36:41 EST
Setting to P5, I think we should defer this request to next release/future.
Comment 4 Zhiqiang Qian CLA 2008-10-24 06:24:53 EDT
*** Bug 251892 has been marked as a duplicate of this bug. ***
Comment 5 Wei Yan CLA 2009-01-18 19:53:43 EST
To support multiple default values, ENGINE only need 
1. convert the MODEL string value to a list value.
2. return a multiple value list as the default parameter value.

Once MODEL finish the changes, ENGINE can finish it in 1-2 days.
Comment 6 Rick Lu CLA 2009-01-18 21:55:07 EST
Model needs to change the default value from a string type into a string list type. Will also provide new APIs and API backward compatibility.
Comment 7 Rick Lu CLA 2009-01-19 03:30:22 EST
The data set parameter has some issues to support multiple default values. So, if when does the conversion between ODA design and BIRT data set handle, only the first default value of report parameter is concerned.
Comment 8 Rima Kanguri CLA 2009-02-09 18:21:46 EST
Reassigning to model team to support the changes first. Please assign to Engine team ones the changes are done
Comment 9 Linda Chan CLA 2009-02-09 23:06:41 EST
(In reply to comment #7)

See bug #264300 for the enhancement in oda.design to support having multiple default values in a data set input parameter definition.

Comment 10 Xuelan Li CLA 2009-02-10 21:59:20 EST
Model changed the defaultValue to string list type. Assign to GUI team.
Comment 11 Yuejie Chen CLA 2009-03-05 00:47:12 EST
Add support for set multiple default values when parameter control type is list-box and allow multiple values.
Fixed.
Comment 12 Zhiqiang Qian CLA 2009-03-06 03:21:27 EST
Reopen for engine change.
Comment 13 Haojun Chu CLA 2009-03-10 04:09:47 EDT
Fixed. Checked in on Mar 10.
Comment 14 mindan xu CLA 2009-03-10 23:32:15 EDT
Multiple default values can be set.
Verified in Build <2.5.0.v20090311-0630>