Jump to content

Custom reporting


EZi

Recommended Posts

Hi All,

 

I'm needing some help with creating a custom report.

 

I want to show the "userid", the "productname" and the "billingcycle" (but the latter only for those products that are labelled "Free Account").

 

I have included the sample with some adjustments but without any substantial results.

Is there anyone that can put in the relevant entries under "tableheadings" and "tablevalues" to achieve the above?

I can then probably reproduce this for other reports...

 

Thanks in advance for any advice...

 

Rene

 

<?php

 

# The title of your report

$reportdata["title"] = "Free Accounts Exception Report";

 

# The description of your report

$reportdata["description"] = "Report to check if client is paying";

 

# Header text - this gets displayed above the report table of data

$reportdata["headertext"] = "Free Accounts Exception Report";

 

# Report Table of Data Column Headings - should be an array of values

$reportdata["tableheadings"] = array("Column 1","Column 2","Column 3");

 

# Report Table Values - one of these lines for each row you want in the table

# should be an array of values to match the column headings

$reportdata["tablevalues"][] = array("Data 1","Data 2","Data 3");

$reportdata["tablevalues"][] = array("Data 1","Data 2","Data 3");

$reportdata["tablevalues"][] = array("Data 1","Data 2","Data 3");

 

# Report Footer Text - this gets displayed below the report table of data

$data["footertext"] = "";

 

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated