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

Bug 353118

Summary: Multi-value parameters in Custom Parameter Page
Product: z_Archived Reporter: Scroon <sdai>
Component: BIRTAssignee: Birt-ReportViewer <Birt-ReportViewer-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier, jmdupuis
Version: 3.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
ParamDefTag class modified for using multiple values parameter in cascade none

Description Scroon CLA 2011-07-26 10:23:45 EDT
Hello,

For a custom parameter page using BIRT tag library, the multi-value parameters are always be rendered as single-value list boxes, which does now allow user to select multiple values.

Reference:
http://www.eclipse.org/forums/index.php/t/224353/
Comment 1 Jean-Michel Dupuis CLA 2014-11-17 12:55:19 EST
Created attachment 248706 [details]
ParamDefTag class modified for using multiple values parameter in cascade
Comment 2 Jean-Michel Dupuis CLA 2014-11-17 12:57:56 EST
Hello,

the problem origin is in the "org.eclipse.birt.report.taglib.ParamDefTag" class.

The method : "__handleListBox( )" does not treat the case of cascading parameter with multiple values.

My proposition is to replace the line : "__handleCascadingListBox( );" by this lines :
"if ( this.paramDef.isMultiValue( ) )
				__handleMultiListBox( selectionList );
			else
				__handleCommonListBox( selectionList );" in the block concerning cascading parameter.

I add an attachment with the modified class.

Have a nice day,
JM