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

Bug 314084

Summary: [Regression] Can not close hyperlink dialog by click OK button in chart builder.[13]
Product: z_Archived Reporter: Maggie Shen <lshen>
Component: BIRTAssignee: Xingsheng Zhu <xzhu>
Status: VERIFIED FIXED QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: Lionel.wyl, rlu
Version: 2.6.0   
Target Milestone: 2.6.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Maggie Shen CLA 2010-05-24 05:42:35 EDT
description:
Can not close hyperlink dialog by click OK button in chart builder.

build id:
2.6.0 v20100524-0630

steps to reproduce:
1. New a chart.
2. Add a hyperlink interactivity to it.

Actual result:
Can not close the hyperlink dialog by click OK.
Comment 1 Xingsheng Zhu CLA 2010-05-24 06:09:41 EDT
Exception stacktrace:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.eclipse.birt.report.model.core.Structure
at org.eclipse.birt.report.model.command.AbstractPropertyCommand.makeLocalCompositeValue(AbstractPropertyCommand.java:487)
at org.eclipse.birt.report.model.command.PropertyCommand.setMember(PropertyCommand.java:1051)
at org.eclipse.birt.report.model.api.MemberHandle.setValue(MemberHandle.java:98)
at org.eclipse.birt.report.model.api.StructureHandle.setProperty(StructureHandle.java:287)
at org.eclipse.birt.report.model.api.StructureHandle.setExpressionProperty(StructureHandle.java:469)
at org.eclipse.birt.report.designer.ui.dialogs.HyperlinkBuilder.setURI(HyperlinkBuilder.java:1266)
at org.eclipse.birt.report.designer.ui.dialogs.HyperlinkBuilder.okPressed(HyperlinkBuilder.java:1292)

Reassign to model for further investigation.
Comment 2 Xuelan Li CLA 2010-05-24 23:39:20 EDT
Chart should change the attribute 'isList' to TRUE for property 'action' in plugin.xml. For model changes all the action property in label, image and data to support multiple hyperlinks to fix 265391.
Comment 3 Xingsheng Zhu CLA 2010-05-24 23:51:23 EDT
Fixed. Change action property type to list on report item model.
Comment 4 Maggie Shen CLA 2010-05-25 05:37:47 EDT
verified on build 2.6.0 v20100525-1629. OK button is not enabled if hyperlink is not defined.