Skip to main content



      Home
Home » Archived » BIRT » why script error on simple hyperlink to bookmark ?
why script error on simple hyperlink to bookmark ? [message #258065] Fri, 12 October 2007 10:25 Go to next message
Eclipse UserFriend
Originally posted by: peter.marx.knorr-bremse.com

I created two labels, setting the bookmark of #2 to <target> and defining
in #1 a hyperlink by selecting the same report and selecting the offered
bookmark named target.

This produces linktest.rptdesign:target in the properties "link to" field.

Hyperlink type is Drill-Through (same effect happens when "Internal
Bookmark")

In preview the hyperlink works properly, but I get this error text:
---------------------------------------------------------
The following items have errors:

ReportDesign (id = 1):
+ There are errors evaluating script "target":{1}.
---------------------------------------------------------

What is wrong here ?
Re: why script error on simple hyperlink to bookmark ? [message #258080 is a reply to message #258065] Fri, 12 October 2007 11:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Peter,

Make sure your target is in quotes and then rebuild the link. This
should be an internal bookmark.

Attached is an example.

Jason


<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.14"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.2.0.v20070620 Build &lt;2.2.0.v20070626-1003></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2007 &lt;&lt;Your Company
Name here>></property>
<html-property name="description">Creates a blank report with no
predefined content.</html-property>
<text-property name="displayName">Blank Report</text-property>
<property name="iconFile">/templates/blank_report.gif</property>
<styles>
<style name="crosstab" id="4">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab-cell" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property
name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<label id="6">
<property name="pageBreakAfter">always</property>
<text-property name="text">Label 1</text-property>
<structure name="action">
<property name="linkType">bookmark-link</property>
<expression name="targetBookmark">"test"</expression>
</structure>
</label>
<label id="7">
<expression name="bookmark">"test"</expression>
<text-property name="text">Label 2</text-property>
</label>
</body>
</report>



Peter wrote:
> I created two labels, setting the bookmark of #2 to <target> and
> defining in #1 a hyperlink by selecting the same report and selecting
> the offered bookmark named target.
>
> This produces linktest.rptdesign:target in the properties "link to" field.
>
> Hyperlink type is Drill-Through (same effect happens when "Internal
> Bookmark")
>
> In preview the hyperlink works properly, but I get this error text:
> ---------------------------------------------------------
> The following items have errors:
> ReportDesign (id = 1): + There are errors evaluating script
> "target":{1}. ---------------------------------------------------------
>
> What is wrong here ?
>
>
>
Re: why script error on simple hyperlink to bookmark ? [message #258084 is a reply to message #258080] Fri, 12 October 2007 11:54 Go to previous message
Eclipse UserFriend
Originally posted by: peter.marx.knorr-bremse.com

Hi Jason,

it works!

Was not so obvious from help that ".." is necessary.

Thanks a lot

Peter
Previous Topic:why IdataExtractionTask.getResultSetList( ); returns ONLY ONE ResultSet?
Next Topic:Help regarding script
Goto Forum:
  


Current Time: Sun May 11 13:01:19 EDT 2025

Powered by FUDForum. Page generated in 0.02405 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top