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

Bug 182066

Summary: Enhancement for selet value list on dataset filter building dialog
Product: z_Archived Reporter: Hongchang Lin <linhongc>
Component: BIRTAssignee: Chen Chao <cchen>
Status: VERIFIED FIXED QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier, lzhu, wenfeng.fwd
Version: 2.2.0Keywords: plan
Target Milestone: 2.5.2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete

Description Hongchang Lin CLA 2007-04-11 23:37:28 EDT
Steps to reproduce:
1.New a dataset;
2.Double click the dataset to starts up dataset edit dialog;
3.Choose "Filters" option;
4.Press "New" button to starts up filter edit dialog;
5.Assigns an expression to the filter conditon instead of select a column value from the drop down list;
6.Choose a operator;
7.Press the arrow button to select the "<Select Value...>" option

Expected result:
Starts up the select value dialog and list the available values based on the assigned expression.
For example: 
Assign an expression: row["CITY"] + row["OFFICECODE"]
Then the value list probably like:
Tokyo01
NYC02
London03
...

Actual result:
Given a warning "Value list unavailable with given expression"

I think this case can be supported.
Comment 1 Lin Zhu CLA 2007-04-12 00:52:21 EDT
For select value dialog in DataEditor, we need not support this, for in Data Set Editor we cannot define column bindings.

For select value dialog in Property Editor, GUI would responsible for it. DtE already provide api in DataRequestSession class to support this.

Comment 2 Wenfeng Li CLA 2007-05-30 20:01:18 EDT
add plan keey word for release planning
Comment 3 Zhiqiang Qian CLA 2008-12-09 01:32:48 EST
Reassign to Dte to see if there's any global solution for this feature.
Comment 4 Lin Zhu CLA 2009-06-02 00:01:10 EDT
We are looking forward to an overall enhancement of select value so that it can not only consume expression but also allow aggregations. Suggest to do this in 2.5.1.
Comment 5 Mingxia Wu CLA 2009-08-20 06:16:17 EDT
Supply the method getSelectValueFromBinding( String expression,
			DataSetHandle dataSetHandle, Iterator binding, boolean inclFilter ) in org.eclipse.birt.report.designer.data.ui.util.SelectValueFetcher. GUI need to change related code in filter, map, highlight etc.
Comment 6 Chen Chao CLA 2009-09-23 00:56:22 EDT
Fixed it.
Comment 7 Maggie Shen CLA 2009-10-13 23:11:40 EDT
verified on build 2.5.2.v20091014-0630. Support build expression in select value of filter/highlight/map. Crosstab bindings are not supported.