Bug 144399 - Maprule problem on table row
Summary: Maprule problem on table row
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 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Ivy Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 05:21 EDT by Sissi Zhu CLA
Modified: 2006-06-05 14:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sissi Zhu CLA 2006-05-30 05:21:40 EDT
Description:
Set a map on table row, then all the data item on the row is set the map automatically. Delete the map rule on some data items, but that does not take effect. The map rule should take the highest priority from the data item, then table row.
Comment 1 Wenfeng Li CLA 2006-05-30 22:25:04 EDT
Is the map saved as property of the table row or property of the data items? If former, how can data row tell it is not inheritnig the rule from the tbale row?

Comment 2 Sissi Zhu CLA 2006-06-01 04:19:20 EDT
There could be two kinds of conflict use cases:
1. If the map rule of data item and its container are same, user want to remove the maprule on the data item, so he/she delete the maprule on it. 
2. If the map rule of data item and its container are different, user want to inherit the maprule of its container, so he/she delete the maprule on it.
It's difficult for Model to handle these two cases to meet user's requirement. So my suggestion is to add a GUI interface for user to choose whether to inherit the container's property or not.
Comment 3 Ivy Li CLA 2006-06-05 04:59:14 EDT
There are two cases from user for the property value which can be extended from parent element. 
1. The value on the report item itself is null but the value of this property is extended from parent.
2. The value on the report item itself is null, and users expect it is null of this property on the report item.

From the current UI, how could we distinguish this? So, firstly UI need the new mockup to support this feature. Proposed solution:
If the report item map rule list is null and the valule is extended from parent:
1.If user click delete a rule, then call Model API to copy the rule list from parent, delete the one that user choose.
2.If there is only one rule defined in parent, after user delete the rule operation, there will be an empty list in the report item so that it will not extended any value from parent any more. 
3.Add an icon in the designer "atuto value". If user press this icon, the value in the report item will be set to null. So the map rule list value will be extended from parnet. 

Same case for filter condition. Set to p5 to under review cross team.
Comment 4 Wenfeng Li CLA 2006-06-05 14:49:58 EDT

(In reply to comment #3)
> There are two cases from user for the property value which can be extended from parent element. 
> 1. The value on the report item itself is null but the value of this property
> is extended from parent.
> 2. The value on the report item itself is null, and users expect it is null of this property on the report item.
>

We support #1 today, defer #2 support for future release.  A work around for #2 is to create an empty mapping rule for the report item.