Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: servlet+hyperlink not rendered - kind of urgent - i need to choose a report tool

  1. #1
    Join Date
    Aug 2014
    Posts
    3

    Default servlet+hyperlink not rendered - kind of urgent - i need to choose a report tool

    hi, if i export the report to html hyperlinks are rendered and they work.

    however, i need to generate report from within a servlet with dynamic parameters. in this case hyperlinks are not rendered, they are just text.

    my code is below. is there anything i can change to get hyperlinks work? thanks.

    ResourceManager manager = new ResourceManager();
    manager.registerDefaults();

    try
    {
    Resource res = manager.createDirectly(reportUrl, MasterReport.class);
    MasterReport report = (MasterReport) res.getResource();

    String city = request.getParameter("city");

    report.getParameterValues().put ("_city", city);
    HtmlReportUtil.createStreamHTML(report, response.getOutputStream());

    }
    catch (Exception e)
    {
    e.printStackTrace();
    }

  2. #2
    Join Date
    Aug 2014
    Posts
    3

    Default

    it looks like url field does not work when report is called dynamically from a servlet.

    however, i was able to get the desired effect by modifying the onclick formula as follows:

    ="window.location.assign('index.html?sku=000000001000108321')"

    and made the linking field blue and underlined to create a link effect.

    it would be great if the url field were working and no hack needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.