Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: import a Report

  1. #1

    Question import a Report

    Hi,
    I'd like to import a JFreeReport (HTML) in a JSP file to create a dashboard.
    How can i use an xaction file in a jsp file?
    example : have my report in html shown in a scroll panel.

    Any idea?

  2. #2
    Join Date
    Jan 2007
    Posts
    8

    Default try ChartHelper.doAction

    nicolas,

    try this.



    // run the action sequence 'samples/dashboard/jsp/report.xaction'
    ChartHelper.doAction( "samples", "dashboard/jsp", "report_name.xaction", "sampled", parameters, outputStream , userSession, messages, null );


    nicolas hope this helps U, to display u r report as dashbosrd in jsp.
    instead of "ChartHelper.dochart" call "ChartHelper.doAction".
    Regards.
    nanu

  3. #3

    Default Working

    Yeah, It works-
    Thanks for this quick answer

    An idea about how to hide "header" infos like
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JFreeReport-WizardReport</title>
    <link rel="stylesheet" type="text/css" href="http://localhost:8080/pentaho/getImage?image=tmp_chart39727.css">
    </head>
    <body>coming from the html report?

  4. #4
    Join Date
    Jan 2008
    Posts
    17

    Default its not working

    hi nicolas,

    I tried the same, but doesnt work. Can u help please?

    Please check my previous post.


    http://forums.pentaho.org/showthread...712#post188712

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.