Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314631 - Cann't get correct default values for parameters that with non-constant default value expressions
Summary: Cann't get correct default values for parameters that with non-constant defau...
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC4   Edit
Assignee: Jianchao Li CLA
QA Contact: Xiaodan Wang CLA
URL:
Whiteboard: Non-Auto
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 06:01 EDT by Jianchao Li CLA
Modified: 2010-06-03 02:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).