Results 1 to 2 of 2

Thread: Dirty hack: Zuckerreports HTML report dashlet

  1. #1
    gunni is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Cologne, Germany
    Posts
    364

    Default Dirty hack: Zuckerreports HTML report dashlet

    I wanted to display real HTML reports created in IReport as a dashlet. As i never use HTML reports in other places than this i decided to do a quick hack that may break other things with HTML reports.
    As far as i can see there are no problems till now, pdf reports are not affected.

    What has to be done:
    1. unpack the attached zip file to sugar\modules\ZuckerReports\Dashlets
    2. Add the following line in sugar\modules\ZuckerReportTemplate\ReportTemplate. php
    It is around line 250.
    Original:
    Code:
    		fclose($f);
    
    		$classpath = $this->get_classpath();
    		$result = $this->execute_java("-classpath ".$classpath." at.go_mobile.zuckerreports.JasperBatchMain ".$cmdfile);
    		
    		if ($zuckerreports_config["debug"] != "yes") $this->rec_delete($tempdir);
    		return $result;
    	}
    
    	function execute_java($args) {
    Changed:
    Code:
    		fclose($f);
    
    		$classpath = $this->get_classpath();
    		$result = $this->execute_java("-classpath ".$classpath." at.go_mobile.zuckerreports.JasperBatchMain ".$cmdfile);
    		
    		if ($zuckerreports_config["debug"] != "yes") $this->rec_delete($tempdir);
    if($format == 'HTML') $this->report_result = file_get_contents($archive_dir."/".$this->report_result_name);
    		return $result;
    	}
    
    	function execute_java($args) {
    3. Quick Repair
    4. Create a HTML runnable report from any jasperreport template
    5. Add HTML Dashlet to your dashboard.
    6. Choose your runnable report in the dashlet
    Attached Files Attached Files
    Last edited by gunni; 2011-01-19 at 11:19 AM.

  2. #2
    aluis80 is offline Member
    Join Date
    Mar 2010
    Posts
    7

    Default Re: Dirty hack: Zuckerreports HTML report dashlet

    Hi,

    have you had the chance to try your zucker html dashlet in Sugar 6 version?
    So far it did not work for me...
    best regards,

    AL

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2009-07-08, 04:45 PM
  2. Scheduled Report in ZuckerReports
    By douglasfabiano in forum Help
    Replies: 0
    Last Post: 2009-05-01, 04:57 PM
  3. ZuckerReports report without page size ?
    By ivit in forum Developer Help
    Replies: 8
    Last Post: 2009-03-05, 02:58 AM
  4. formated report in ZuckerReports
    By akkimca in forum Help
    Replies: 5
    Last Post: 2009-01-29, 04:08 AM
  5. jasper report in zuckerreports
    By longnv in forum Developer Help
    Replies: 1
    Last Post: 2007-02-06, 11:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •