| Summary: | The hyperlink on the report cannot be opened, due to the wrong escape character | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Hai Feng Luo <haifengl> | ||||
| Component: | BIRT | Assignee: | Birt-Chart-inbox <Birt-Chart-inbox> | ||||
| Status: | NEW --- | QA Contact: | Xiaoying Gu <bluesoldier> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bluesoldier | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 196510 [details]
the sample file
|
Build Identifier: Eclipse BIRT Designer Version 2.5.2.v20100208 Build <2.5.2.v20100210-0630 The hyperlink on the report cannot be opened although it has been defined on the report. The root cause is that the new line in the hyperlink definition (javascript codes) of the report will be generated as code "&#13;" and this causes the hyperlink not work. The workaround is to manually replace that with "
" or "
". Reproducible: Always Steps to Reproduce: 1. Create a chart, define the hyperlink in series part, by selecting the Event as "Mouse Click", Action as "Hyper link", and add a new hyperlink in the Hyperlinks section, input some javascript codes in the location of URL. Also define a Mouse over event ( to show tooltips) for the report series also. 2. run the report, the hyperlink is supposed to be opened after clicking, the url defined in the URL location should be opened. But nothing happens, except the mouse over event working 3. To look into the xml source code, would find some strings like: <BaseUrl><structure name="action"> <property name="linkType">hyperlink</property> <expression name="uri" type="javascript">if(true){&#13; "http://www.google.com"&#13; }&#13; else {&#13; "http://www.yahoo.com"&#13; }</expression> <property name="targetWindow">_blank</property> </structure> </BaseUrl> You can see that characters like &#13; this is the escape char for new line in the javascript codes of hyperlink. Change it to or 
. the problem will be resolved. Seems &#13; is escapted from or