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

sjoerd.jump

Members
  • Posts

    74
  • 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 sjoerd.jump

  1. For your calculation question, yes thats possible. 

    Add a Measure to Measures in your Crosstab.

    Adjust the width of the column you want to add the  "totalMeasure" too.

    Add a textfield and link your new Variable.
    To set up the variable, add a variable in your report. Do the calculations

    $V{Var1}+$V{Var2}
    Only if you set Groovy as language of your report (in the property sheet)
    Otherwise, depending by the value of your variables, you should use something like:
    new Double(  $V{Var1}.doubleValue() + $V{Var2}.doubleValue() )

    Where Var are the columns from your database.

    This should do the trick!

    Regards, Sjoerd

    link to the calculation answer: 

  2. BTW, i use PHP to generate my report-links. I store the last bit in a database and generate them using the following code:

     

    define('URL_BASE', 'http://traject-pc:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports&reportUnit=');[/code]
     

     

    $final_url = URL_BASE . $link;[/code]
     

    $link = $line['link'];$name = $line['naam'];$click = LINK_ONCLICK;$final_url = URL_BASE . $link;{echo "tt<td>$name</td><td><a target="report"href="$final_url"$click">$name</a></td>n";[/code]
     

  3. Let me put it this way :)

     

    I have 2 crosstabs in 2 reports

     

    in report 1 crosstab the height is fixed to 150 px. So i know where to place crosstab 2 (+150px)

    In report 2 crosstab 1 is 175 pixels. So placing crosstab 2 @ + 150 px will print the lines over each other. Thats what i'm struggeling with :-)

     

  4. Working on a set of reports I notced thats its not possible to adjust the height of a crosstab Dynamicly.

    i have to generate a bunch of different reports but all with the same number of crosstabs. But not al these crosstabs have the same number of lines.

    To improve the reports' maintainability i would like to adjust the height of the crosstab dynamicly.

    The following does NOT work:

    Paste a Variable into the height field:
    Paste the variable into the xml. 
    <reportElement uuid="xxx" x="0" y="600" width="1703" height="<![CDATA[$F{ct_1}]]>" />

     

    anyone has an idea?

  5. Hi guys,

    I have a report with 4 parameters, Year, Month, Min, Max
    When i started out with the parameters only Month and Max were used. So i added Year and Min later.
    All parameters are at the top of the page but there is no way to sort them.
    Currently the order is [Month] [Max] [Min [Year] while a better order would be [Year] [Month] [Min] [Max].


    Does anyone know how to sort the order of the Parameters?

    Thanks!

  6. Looks like you enterd a wrong address in js.quartz.properties

    Mine looks like...

     

    report.scheduler.mail.sender.host=smtp.gmail.com
    report.scheduler.mail.sender.username=my_mail@gmail.com
    report.scheduler.mail.sender.password=my_pass
    report.scheduler.mail.sender.from=return_mail
    report.scheduler.mail.sender.protocol=smtp

     

    report.scheduler.mail.sender.port=587
    report.scheduler.web.deployment.uri=http://localhost:8080/jasperserver
  7. Hello Guys,

     

    i have a question about a query that is based on 2 paramaters.

    Both parameters are dropdowns ($P{dropdown1} and $P{dropdown2})

    $P{dropdown1}
    select naam from table1 join table2 using (id) order by naam 

    $P{dropdown2}
    select ht from table1 join table2 using (id) where naam = $P{dropdown} and ht not in (select ht from negeren_ht)

    some of my code that fills the report:
    and (naam = $P{dropdown} and ht = ANY (array[$P{dropdown2}]))

     
    I suspect the problem is with ht =  ANY (array[?]))
     
    The output according to the logfile is:
    and (naam = ? and ht = ANY (array[?]))
    2013-11-04 11:59:14,196 DEBUG JRJdbcQueryExecuter,pool-1-thread-96:396 - Parameter #1 (dropdown of type java.lang.String): component
    2013-11-04 11:59:14,196 DEBUG JRJdbcQueryExecuter,pool-1-thread-96:396 - Parameter #2 (dropdown2 of type java.lang.String): [sub1, sub2, sub3 totaal]
    I dont know what im doing wrong, the query gives the correct output when i run it in pgAdmin, but it fails in Jasperserver...

    Any ideas?
     
    cheers, 
     
    sjoerd
×
×
  • Create New...