Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 252043

Summary: Cannot send report parameters when defininig interactive drilldown on the legend
Product: z_Archived Reporter: Sheldon Lee-Loy <sleeloy>
Component: BIRTAssignee: Yulin Wang <Lionel.wyl>
Status: CLOSED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: enhancement    
Priority: P3 CC: hchristensen
Version: unspecifiedKeywords: plan
Target Milestone: 2.5.0 M4   
Hardware: All   
OS: All   
Whiteboard: Non-Auto
Attachments:
Description Flags
screen shot that shows the ability to submit report parameters
none
workspace that shows the problem. none

Description Sheldon Lee-Loy CLA 2008-10-24 14:40:41 EDT
I looked at trying to create a drill down link on a legend item and pass a row context as a report parameter to the sub report. I don't think this feature is supported on the legend even though you're able to specify the row binding in the chart interactivity dialog. 


I'm attaching a screen shot that shows you that the user is able to specify the row context so that you know what i'm talking about.


I'm also attaching the workspace that demonstrates this problem.
Comment 1 Sheldon Lee-Loy CLA 2008-10-24 14:42:09 EDT
Created attachment 116091 [details]
screen shot that shows the ability to submit report parameters
Comment 2 Sheldon Lee-Loy CLA 2008-10-24 14:43:21 EDT
Created attachment 116092 [details]
workspace that shows the problem.
Comment 3 Sheldon Lee-Loy CLA 2008-10-24 14:45:23 EDT
Please let me which release this feature will be targeted as this is a must have for a product.
Comment 4 Yulin Wang CLA 2008-10-27 04:06:43 EDT
Currently Legend in chart doesn’t support interactivity for each item, i.e. the interactivity hot spot is treated as a whole in Legend. Only value series supports interactivity to each data point, so it’s expected behavior.

There are some reasons we can’t support it in Legend. The typical case is when you could have a chart with multiple value series definitions (your case has only one: sales), Legend can’t be separated to multiple parts. Another case is, you optional grouping is by productLine as a group key, if you set another parameter value which is not this group key, so the parameter values may be various in each group.

As a workaround, you have to add interactivity to value series. Legend only supports interactivity (such as hyperlink and scripts) as a whole, except built-in highlight and toogleVisibility.

For the enhancement, we could create a javascript variable for current legend item’s value, so user could use js variable instead of evaluate expression to pass the parameter value. Moreover, we should disable the data binding in expression builder, since it’s not supported in Legend case.

Comment 5 Sheldon Lee-Loy CLA 2008-10-27 11:13:49 EDT
(In reply to comment #4)

> As a workaround, you have to add interactivity to value series. Legend only
> supports interactivity (such as hyperlink and scripts) as a whole, except
> built-in highlight and toogleVisibility.
> For the enhancement, we could create a javascript variable for current legend
> item’s value, so user could use js variable instead of evaluate expression to
> pass the parameter value. Moreover, we should disable the data binding in
> expression builder, since it’s not supported in Legend case.

Could you explain the work around in more detail?

What is the target date of BIRT 2.5.0?  I couldn't find a release plan on the website.
Comment 6 Yulin Wang CLA 2008-10-28 01:47:32 EDT
(In reply to comment #5)
> (In reply to comment #4)
> 
> > As a workaround, you have to add interactivity to value series. Legend only
> > supports interactivity (such as hyperlink and scripts) as a whole, except
> > built-in highlight and toogleVisibility.
> > For the enhancement, we could create a javascript variable for current legend
> > item’s value, so user could use js variable instead of evaluate expression to
> > pass the parameter value. Moreover, we should disable the data binding in
> > expression builder, since it’s not supported in Legend case.
> 
> Could you explain the work around in more detail?
> 
> What is the target date of BIRT 2.5.0?  I couldn't find a release plan on the
> website.
> 
I mean you should add interactivity to value series so that the interactivity could work when you click/mouseOver/... to the Bar/Line/Pie... 
I don't know the date yet.
Comment 7 Yulin Wang CLA 2008-11-24 22:35:14 EST
Added two variables: legendItemText and legendItemValue in expression builder for Legend's hyperlink drillthrough/bookmark/URI.
Variable legendItemText is the value of current Legend item's text, and variable legendItemValue is the value of current legend item's showValue when color is by series and showValue is enabled.
Also remove column binding expressions from expression builder since it doesn't fit legend type.

In this case, please use legendItemText instead of column binding expression.
Comment 8 Xiaodan Wang CLA 2008-12-23 01:57:58 EST
Both variable legendItemText and legendItemValue can be passed to the target report.
Verified in build (2.5.0.v20081223-0630).
Comment 9 Paul Slauenwhite CLA 2009-06-30 09:35:47 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 10 Paul Slauenwhite CLA 2009-06-30 09:59:59 EDT
This enhancement/defect was mistaken closed as part of the TPTP 4.6 Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes) since the originator of this enhancement/defect has an inactive Bugzilla account.  If this enhancement/defect is still unresolved and reproducible, please re-open.