Jump to content
JasperReports Library 7.0 is now available ×

gaetan_prulhiere

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by gaetan_prulhiere

  1. Hello

    I would like to change the field in the select of my subreport's query..

    For example, in the query : select max(field) from myTable, i would like to have a parameter $P{MAX_MIN} to choose the maximum or the minimum like that :

    select $P{MAX_MIN} from myTable where  $P{MAX_MIN} = 'max(field)' or 'min(field)'.

    Can I do that or something like that ?

  2. First, thanks for your answer.

    I could add a where condition in my query but if I do this, I couldn't display other country in my report. I could make a subreport too but i don't want to do that just for displaying one field. I can't add a filterExpression on a field, is not ?

    With the printwhenexpression, i try all evaluation time and none work

  3. Hello

    I would like to display only one value of a list with an condition. For example, my table : 

    COUNTRYPOPULATION
    FRANCE100
    SPAIN80
    GERMANY110

    With my query in the report : (select * from table), i would like to do a list of country with the population in the detail zone and only show france's population in the page header.

    I try with the "Print when expression"  : $F{COUNTRY} == "FRANCE", on the field $F{POPULATION} or to make a variable FRANCE_POP with expression (  $F{COUNTRY} == "FRANCE" ? $F{POPULATION} : "")

    But, my result is the last value and not the value of France.

    How i can stop the search when the good value is find or block the result to have the right value ?

    I don't know if my question understandable and i'm french.

    Thanks

     

×
×
  • Create New...