| Summary: | [Scripting usability] Ability to set format of a control without changing the locale of the entire report. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Rima Kanguri <rkanguri> | ||||||
| Component: | BIRT | Assignee: | Haojun Chu <hchu> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Maggie Shen <lshen> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | bluesoldier, rlu, whe, wyan, zqian | ||||||
| Version: | unspecified | Keywords: | plan | ||||||
| Target Milestone: | 2.5.0 M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 2000 | ||||||||
| Whiteboard: | Autoed,G-text | ||||||||
| Attachments: |
|
||||||||
|
Description
Rima Kanguri
- We can enhance the format dialog to support optional input locale property - If user does not set the locale then we should keep the current behavior We need model support first. (In reply to comment #2) > We need model support first. > Locale property on NumberFormat, StringFormat, DataTimeFormat are good enough to UI? Yes, I think a new "Locale" property should be enough. We will also need support in BIRT engine right? Yes, it also needs BIRT Engine support. Can we finish this for M6? Thanks provided get/setLocale() methods on FormatValueHandle. reassign to GUI Please propose the UI mockup. Created attachment 125701 [details]
Locale Setting
Created attachment 125702 [details]
Locale Setting 02
Proposed UIs are attached. Reopen for designer change. Note the locale list should have an "Auto" choice by default selected, which means using the default locale thus being compatible with old behavior. should we add a new property to the report design handler to control the locale used to format the data? such as: design: locale: en_US element: locale: en_US/Auto/viewTime If the user defines the locale in the report design, it means the report is always formatted with that locale. The view time locale won't changes the format of the report. If the locale is not defined, view time locale is used to format the report. The user can override the settings in the data item's locale setting. The data item's locale setting can be: a. auto: the report design's locale or view time locale if the report design's locale is empty. b. locale. The locale used to format the data. In this case, the design local or the view time local is not used. c. view time locale. In this time,the view time locale is used. If we accept this solution, the user can easy to create the report design as: 1. a localized report design. The DESIGNER's locale is used automatically. Such kind of reports have same output in different locales. I think most of the reports belongs to this catalog. 2. a i18n report design. The user should left the report design's locale to empty and view time locale is used. Fixed the GUI part. Reassign to the engine team. Fixed. Checked in on Apr 17. verified on build 2.5.0 v20090422-0630. Issue in excel is logged as #273377. |