Bug 140133 - L10: support resource key for dynamic entries of parameter
Summary: L10: support resource key for dynamic entries of parameter
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Zhiqiang Qian CLA
QA Contact: Xiaodan Wang CLA
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2006-05-04 06:03 EDT by Der Spunk CLA
Modified: 2010-05-06 01:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Der Spunk CLA 2006-05-04 06:03:28 EDT
A parameter has display type 'List Box' and a static selection list. There is no way to specify resource keys for the displayed text of each selection list entry.
Comment 1 Wenfeng Li CLA 2006-05-05 23:03:59 EDT
Does ROM allow resource key on the selection list display Text?  if yes, please pass on to UI to allow user to edit it.
Comment 2 Der Spunk CLA 2007-07-22 06:26:13 EDT
GUI support for SelectionChoice.labelID is still missing in 2.2.0 - will it be scheduled for 2.2.1?
Comment 3 Wenfeng Li CLA 2007-07-22 22:39:15 EDT
Is this enh for the entries in the parameter value selection list?

For dynamic parameter value selection list, the values are from dataset/database.  If we can support mapping display text ID to a database column, then at runtime, engine can retrive the display text from translation property file based on <user locale, display text id>.

For static parameter value selection list, the DisplayText is entered during report design time.  If we are to support DisplayText ID, then at runtime, engine can retrive the display Text based on <user locale, displayText ID>.

If this is the enhancement, require related code in model, UI, engine to support this.

+1 for this enhancement.  Consider this feature for 2.3.0 target milestone.
Comment 4 Der Spunk CLA 2007-07-23 15:52:37 EDT
At least for static selection lists there is no need to change the model or the engine - labelID is already supported by the report engine. When i add the labelID property into the XML source manually, the display texts of the static selection list will be translated (see ParameterSelectionChoice.getLabel()). Only the BIRT Report Designer UI does not support editing and showing the translations.

<list-property name="selectionList">
    <structure>
        <property name="value">internalValue01</property>
        <property name="label">A fallback label 01</property>
        <property name="labelID">lableKey01</property>
    </structure>
    ...
</list-property>

For static selection lists the user should be able to edit the labelID property via the BIRT Report Designer instead of manually editing the XML source.
Comment 5 Wenfeng Li CLA 2007-07-23 17:05:26 EDT
set to 2.2.1 to enh UI for static parameter's labelID.
Comment 6 Chen Chao CLA 2007-07-24 04:28:59 EDT
Fixed it.
Comment 7 Wenfeng Li CLA 2007-07-24 18:09:31 EDT
reopen to track dynamic parameter's displayID enh

For dynamic parameter value selection list, the values are from
dataset/database.  If we can support mapping display text ID to a database
column, then at runtime, engine can retrieve the display text from translation
property file based on <user locale, display text id>.
Comment 8 Zhiqiang Qian CLA 2009-05-30 23:36:39 EDT
Move to future release to investigate the remaining enhancement.