| Summary: | Copying an aggregate does not make a copy, only a reference | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jane Tatchell <jtatchel> |
| Component: | BIRT | Assignee: | Yuejie Chen <yuejie.chen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | lzhu, rkanguri, wenfeng.fwd, xxue, zqian |
| Version: | 2.2.0 | Keywords: | plan |
| Target Milestone: | 2.2.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | Non-Auto | ||
| Bug Depends on: | 200477 | ||
| Bug Blocks: | |||
|
Description
Jane Tatchell
This needs a whole refactor or current UI copy/past behavior, and need careful design case by case. please describe the partial fix in 2.2.1 and defer the major refactor to 2.3.0. schedule this to 2.2.1 for the partial fix only. This issue has been reported by many users. Can we ask user if they want to create a new databinding column if they start to edit the data binding column that is shared by more than one report item/cell? Is there a way to scan the report item expression to see if that data binding item is used by more than one report item? the prompt to the user could be This data expression is used by more than one report item and cell, do we you want to change the expression for all places or create a new expression for this report item? Taking this approach, we do NOT need to change the semantic of copy/paste as shallow copy only. The partial fix has already done. I think we can do this, CC Lin to see if Dte can provide utility method to perform this check. When double click the dataitem, we will use utility method from Dte to check if this binding is referenced by multiple report items, if so , pop up a dialog to prompt if user want to create a new binding. the new binding should copying the settings of original binding except the name. If user choose "no", it keeps current behavior, also user can cancel the dialog for doing nothing. (In reply to comment #5) > When double click the dataitem, we will use utility method from Dte to check if > this binding is referenced by multiple report items, if so , pop up a dialog to > prompt if user want to create a new binding. the new binding should copying the > settings of original binding except the name. If user choose "no", it keeps > current behavior, also user can cancel the dialog for doing nothing. > WHen user just want to see the current binding, they will also double click on the data item, correct? if so, can we defer the message until UI actually need to save a new expression? And when saving, comparing the new expression with the old expression, if it differs, ask user if they want to create a new one since the old one was shared by multiple report item or script. ok, we can do this check only when user clicks "OK" button. If the binding differs, then pop up the prompting dialog. Ask user to save data binding or create a new data binding when saving a edited data binding which is used in more than one report item. Fixed. |