Jump to content
We've recently updated our Privacy Statement, available here ×

rodnikosh

Members
  • Posts

    16
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by rodnikosh

  1. i create my reports in Ireport 4.8.0 and run them in zuckerreports and everything works fine (zuckerreport is like jasper server but for using in SugarCRM).
    Everything works fine and the ireport jrxml files presented great in zuckerreport , just like it does in Jasper Server.

    But when trying to make zuckerreport execute a report with Hebrew language characters (UTF-8) , I get a blank report.
     
    For example, a report i created with this simple query show a blank report (0 results) on zuckerreport although it runs great (return results) in Ireport and mySQL database:
     
    SELECT
     COUNT(leads.`lead_source`) AS Count_of_sources,
     leads.`primary_address_city` AS leads_primary_address_city,
     leads.`lead_source` AS leads_lead_source
     FROM
     `leads` leads
     WHERE
     primary_address_city = “תל אביב” and Deleted=0
     GROUP BY
     leads_lead_source
     
    when running this report on zuckerreport i get a blank report in any situation where Hebrew characters (UTF-8) are in the query.
     
    Any idea will help, i'm totally stuck... 

  2. i solved the problem. it turns out zuckerreport is based on jasperreport server and therefore can add input controls too.

    The solution is to create the "city_combobox" parameter as a string parameter and leave the query as is , like the above example i gave. thats it for the IReport.

    in zuckerreport, add a parameter that its "Default Parameter Name" named city_combobox.

    for a dropdown parameter choose a type of "user-defined Query" and fill the “Parameter Settings” and “User-Defined Query” fields with a query that will fill the dropdown with a list of values, for example:

    SELECT DISTINCT
    leads.primary_address_city AS leads_primary_address_city
    FROM
    leads leads

    if you can't see the  “Parameter Settings” and “User-Defined Query” fields (in the new version of zuckerreport they are hidden), then

    The code is needed to be added manually in the editview code of zuckerreport.
    Add this code in modules/zr2_ReportParameter/metadata/editviewdefs.php :
    5 =>
            array (
                0 => 'range_options',
      ),

    then you'll see the hidden fields.

    Create a new template using “jasperReports Template” on the menu, the template is actually the report:

    a. Choose a name for the template and choose the jrxml file of the report (from local computer where the Ireport is).
    b. Choose PDF.Excel and HTML.
    c. Save
     

    Create a new Parameter binding between the report and the parameter:
    a. Push “Create”
    b. The parameter name has to be the exact parameter name in the IReport.
    c. Choose the report and the parameter and no need to choose “Bind to module”

    Copy the .jasper file of the report into custom/zuckerreports2/resources in SugarCRM.
    Go to “On demand reporting”, choose the report and the parameter is supposed to show.

    There you go! :)

     

  3. Thank you very much for all your help, i solved the problem. i didn't use the solution you gave but it helped me keep an open mind to find the right one.

    as i said, i use zuckerreport component in SugarCRM to run the reports i create in Ireport. it turns out zuckerreport is actually "kind of" a jasperreport server!. all i needed to do is go deeper into learning zuckerreport and to find that it can add input controls too , just like jasperreport server. so i'm posting my solution as an answer. thank you.

  4. i want to enable the user to choose a parameter value from a Combobox / list / Dropdown / collection (whatever you choose),

    and the value that he chooses will be inserted into the query.

    i already created a string parameter that prompt when i preview the report and the string inserted into the query and it works great, but now i need to define a combobox.

     

    i need to provide names of cities so my query is:

    SELECT
         COUNT(leads.`status`) AS Number_Of_Status,
         leads.`status` AS leads_status,
         leads.`primary_address_city` AS leads_primary_address_city,
         leads.id AS lead_id
    FROM
         `leads` leads
    WHERE
         leads.`primary_address_city` = $P{city_combobox}
    GROUP BY
         leads.`status`

    i tried to make the city_combobox parameter a "Java.util.list" but i get "Parameter type not supported" error and also i don't know where to load the strings into it.

     

    by the way, i don't know anything about Jasperreport server, i didn't install it, only Ireport is installed and up to know i did everything with it,

    so i'm looking for a way to do that in Ireport only, without an intput control of jasperreport server.

    it will be even enough for me to just provide the report with a manully inserted values into the combobox,

    it doens't have to be even a query. for example, insert somewhere "NY","Miami", "Washington" into a list parameter,

    but how and where do i do that?

  5. i'm using IReport 4.8.0. i created a dataset and using it for a table and a chart and everything works fine.

    now i want to add a string parameter so the user can insert a name of city.

    so i added a new string parameter inside the dataset and dragged it into Page Header. i also updated the Dataset query so it will receive the value from the parameter:

    SELECT COUNT(leads.`status`) AS Number_Of_Status, leads.`status` AS leads_status, leads.`primary_address_city` AS leads_primary_address_cityFROM `leads` leadsWHERE leads.`primary_address_city` = $P{city_to_choose}GROUP BY leads.`status`

    but all i get when pushing the "preview" is "Parameter Not Found: city_to_choose" what did i miss?

    param3.JPG.2f0dc5b355cf00be27be61482a158f19.JPG

     

    param3.JPG.c2869bda534bd6936d3319bdec5e9f25.JPG

  6. WOW!! this actually worked! thanks!

    To anyone who had problems with writing UTF-8 word (in my case hebrew language) in the "where" clause of a query in the Query editor and always got no results for the query although there are results. Create a new database connection with the following connection string: jdbc:mysql://IP/databaseName?useUnicode=true&characterEncoding=UTF-8

    it solves the problem and the query starts to return results

  7. in Ireport 4.8.0 i need to write query with a "where" phrase that include a "UTF-8" word, like this:

    SELECT accounts.name AS accounts_name, accounts.billing_address_city AS accounts_billing_address_city FROM accounts accounts WHERE accounts.name = "מיינפורם"

    when i write it in Ireport, it doesn't find anything because it doesn't recognize the UTF-8 word in the where clause:

    utf81(1).JPG.8e344411b892106d8f9f62dc36a9a2a3.JPG

     

    when the same exact query does work in the MySQL database:

    utf82(1).JPG.1a59d967f9d6a2d40b69d34547b9643d.JPG

     

     

    So the problem is in the Ireport that deosn't recognize the UTF-8 word, how can i fix this?

     

    utf81(1).JPG.007f2a44877c8f9d95c31b6d6e904d13.JPG

  8. on the iReport 4.8.0,

    i create a new dataset and choose 3 tables for the dataset to include,

    when i push "next" i get the error : "Java Heap space"

    searched this forum and tried the solution suggested and nothing helped.

    i tried changing the ireport.conf file values from :   -J-Xmx512m    to -J-Xmx1024m or even -J-Xmx2048m.    it doesn't change anything.

    also checked "use visualizer" but i don't know what it is and how to work with it.  anyway, checking the "use visualizer" didn't solve the problem.

     

    any more ideas ?

    heap1.JPG.e7b16351f136a923f74fd9334bbd3e9a.JPG

     

  9. in Ireport 4.8.0

    i want to create a report that shows the contacts in each "lead status".

    i created a datasource with this query:

    SELECT
         leads.`first_name` AS leads_first_name,
         leads.`last_name` AS leads_last_name,
         leads.`status` AS leads_status
    FROM
         `leads` leads
    GROUP BY
         leads_status

    i expected that this query will show a seperate table for each lead status with all the contacts of this specific lead status,

    but all i get is mini tables with all lead status together:

    orderby.JPG.45c5a4f154c9235043212bc75977c44e.JPG

     

    How do i create a seperate table for all contacts in each lead status?

     

     

     

×
×
  • Create New...