Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 264273 - [Scripting Usability ] BIRT Model, Designer changes to support expression in default value
Summary: [Scripting Usability ] BIRT Model, Designer changes to support expression in ...
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.5.0 RC1   Edit
Assignee: Chen Chao CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on: 124950 191445 271177
Blocks:
  Show dependency tree
 
Reported: 2009-02-09 18:29 EST by Rima Kanguri CLA
Modified: 2009-06-24 02:46 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rima Kanguri CLA 2009-02-09 18:29:16 EST
Please refer to enhancement https://bugs.eclipse.org/bugs/show_bug.cgi?id=124950

This bugzilla entry is logged to track model and designer changes.
Comment 1 Rima Kanguri CLA 2009-02-09 18:34:44 EST
Can we finish the changes in M6? Thanks
Please reassign to Zhiqiang after model changes are done
Comment 2 Rick Lu CLA 2009-02-09 21:26:50 EST
Model changes are:

1. change the ScalarParameter.defaultValue type to expression type.

2. add two methods: a )getDefaultValue()  // User can implement this method to return default value. Note we have anotherbugzilla planned to support multiple default values, this method should support multiple default values if the other change is made. b) b) getSelectionValuelist() // User can implement this method to provide the value list. This method is only called for 'list', 'combo' control parameter type If a user sets the default value and also implements the method, the  method value overrides the value set in parameter dialog.

Comment 3 Rick Lu CLA 2009-02-10 21:47:36 EST
This bug depends on Bugzilla 191445. Currently, the parameter value is treated as constant only. Expect it can be constant/expression to resolve this issue. 

Cannot simply change the ROM type to expression since now constant in the parameter value is not quoted.
Comment 4 Rick Lu CLA 2009-03-04 00:56:04 EST
Has changed ScalarParameter.defaultValue to be either expression/string values. Please add two methods.
Comment 5 Xuelan Li CLA 2009-03-05 02:32:50 EST
Add getDefaultvalueListMethod and setDefaultvalueListMethod, getSelectionValueListMethod and setDefaultvalueListMethod in ScalarParameterHandle.
Assign GUI.
Comment 6 Zhiqiang Qian CLA 2009-03-05 05:09:02 EST
Synced with new model api. Waiting for final UI mock for remaining changes.
Comment 7 Rima Kanguri CLA 2009-04-06 20:02:19 EDT
UI will be provided as part of https://bugs.eclipse.org/bugs/show_bug.cgi?id=271177
Comment 8 Chen Chao CLA 2009-05-11 00:37:00 EDT
Fixed it.
Comment 9 Maggie Shen CLA 2009-05-18 03:08:38 EDT
verified both in parameter dialog and in script editor.(build 2.5.0 v20090518-1108)