Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » hyperlink Drill-through BIRT 4.3.1(Trouble with Chart hyperlink Drill-through)
hyperlink Drill-through BIRT 4.3.1 [message #1188800] Fri, 15 November 2013 20:42 Go to next message
Matthew Tiffany is currently offline Matthew TiffanyFriend
Messages: 4
Registered: November 2013
Junior Member
I'm having trouble getting the drill through working on my Linux server, I've looked for an answer on the forums and google, but the only person with my problem never got an answer. I am new to BIRT and any help would be appreciated.

I'm making the report with the 4.3.1 all-in-one package java 1.7 windows 7.
The server is centos6 with tomcat6 and the 4.3.1 runtime birt.war package.

I have two reports,
Servers.rptdesign
Serverinfo.rptdesign

When I click the chart it sends me to this url(SERVER_URL = my server ip)

SERVER_URL:8080/birt/frameset?__report=..%2F..%2F..%2F..%2F..%2Fvar%2Flib%2Ftomcat6%2Fwebapps%2Fbirt%2Freport%2Fserverinfo.rptdesign&__format=html&citycode=73Q&__overwrite=true&__locale=en_US&__designer=false


What I expect to see is
SERVER_URL:8080/birt/frameset?__report=report/serverinfo.rptdesign&__format=html&citycode=73Q&__overwrite=true&__locale=en_US&__designer=false

or even
SERVER_URL:8080/birt/frameset?/var/lib/tomcat6/webapps/birt/report/serverinfo.rptdesign&__format=html&citycode=73Q&__overwrite=true&__locale=en_US&__designer=false


the code for the trigger for the link is

<Triggers>
          <Condition>onclick</Condition>
          <Action>
            <Type>URL_Redirect</Type>
            <Value xsi:type="attribute:MultiURLValues">
              <URLValues>
                <Label>
                  <Caption>
                    <Value>serverlist</Value>
                  </Caption>
                </Label>
                <BaseUrl>&lt;structure>
    &lt;property name=&quot;linkType&quot;>drill-through&lt;/property>
    &lt;property name=&quot;reportName&quot;>serverinfo.rptdesign&lt;/property>
    &lt;property name=&quot;targetBookmarkType&quot;>bookmark&lt;/property>
    &lt;property name=&quot;targetWindow&quot;>_blank&lt;/property>
    &lt;property name=&quot;targetFileType&quot;>report-design&lt;/property>
    &lt;list-property name=&quot;paramBindings&quot;>
        &lt;structure>
            &lt;property name=&quot;paramName&quot;>citycode&lt;/property>
            &lt;simple-property-list name=&quot;expression&quot;>
                &lt;value type=&quot;javascript&quot;>row[&quot;citycode&quot;]&lt;/value>
            &lt;/simple-property-list>
        &lt;/structure>
    &lt;/list-property>
&lt;/structure>
</BaseUrl>
                <BaseParameterName></BaseParameterName>
                <ValueParameterName></ValueParameterName>
                <SeriesParameterName></SeriesParameterName>
              </URLValues>
              <PropertiesMap>
                <Key>MenuItem</Key>
                <Value>color:Black;fontSize:10pt;paddingLeft:10px;paddingRight:10px;paddingTop:2px;paddingBottom:2px</Value>
              </PropertiesMap>
              <PropertiesMap>
                <Key>Menu</Key>
                <Value>zIndex:99999;backgroundColor:#FAFFF8;width:auto;height:auto;border:1px solid #333333;filter:progid:DXImageTransform.Microsoft.Shadow(Color:#333333,Direction=120,strength=5)</Value>
              </PropertiesMap>
              <PropertiesMap>
                <Key>OnMouseOut</Key>
                <Value>backgroundColor:#FAFFF8;color:#000000</Value>
              </PropertiesMap>
              <PropertiesMap>
                <Key>OnMouseOver</Key>
                <Value>backgroundColor:#245DDB;color:#FFFFFF</Value>
              </PropertiesMap>
            </Value>
          </Action>
        </Triggers>
Re: hyperlink Drill-through BIRT 4.3.1 [message #1194512 is a reply to message #1188800] Mon, 18 November 2013 14:55 Go to previous messageGo to next message
Matthew Tiffany is currently offline Matthew TiffanyFriend
Messages: 4
Registered: November 2013
Junior Member
to answer my own question,

I now know %2F means /, and to use relative URLs make sure your BIRT_VIEWER_WORKING_FOLDER and BIRT_VIEWER_REPORT_ROOT parameters in the web.xml are set.
Re: hyperlink Drill-through BIRT 4.3.1 [message #1199444 is a reply to message #1194512] Wed, 20 November 2013 21:21 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Glad you figured it out. Let us know whenever you have questions. Smile

Michael

Developer Evangelist, Silanis
Previous Topic:Map and Highlights in Style
Next Topic:Sub-Report and Filters
Goto Forum:
  


Current Time: Tue Mar 19 08:08:32 GMT 2024

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

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

Back to the top