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

Bug 314631

Summary: Cann't get correct default values for parameters that with non-constant default value expressions
Product: z_Archived Reporter: Jianchao Li <jianchao.li>
Component: BIRTAssignee: Jianchao Li <jianchao.li>
Status: VERIFIED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: normal    
Priority: P3 CC: jianchao.li
Version: 2.6.0   
Target Milestone: 2.6.0 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard: Non-Auto

Description Jianchao Li CLA 2010-05-27 06:01:41 EDT
Steps to reproduce:
1. create a report with a scalar parameter that has non-constant default value expression such as BirtDateTime.today()
2. setup a project to get the default values of the parameter in BIRT runtime
Eg.
IReportEngine engine = createReportEngine( );
IRunnable runnable = engine.openReportDesign( REPORT_DESIGN );
IGetParamaterDefinitionTask task = engine.createGetParameterDefinitionTask( runnable );
HashMap result = task.getDefaultValues();

Expect result:
The result map contains a parameter name and default value pair in which the default value is a Date instance of today.

Actural result:
The default value is null.
Comment 1 Jianchao Li CLA 2010-05-27 22:39:58 EDT
Fixed.
Comment 2 Xiaodan Wang CLA 2010-06-03 02:11:51 EDT
Can get parameter name and default value.

Verified in build (2.6.0.v20100603-0630).