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

crusty_collins

Members
  • Posts

    31
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by crusty_collins

  1. I see what you are saying.  I think you will need to do this in the query with some case statements.

    Checkout this site for help with that http://www.artfulsoftware.com/infotree/queries.php?&bw=1280

     

    Or you could do a variable with an if statement where you use the value

    ($F{hour1}?$F{hour1}
    :$F{hour2}?"$F{hour2}
    etc

    :"")

    But , really what you want to do is change the db to use relational db.  the code below is what I would do.

     and then your query would be like this which would give you what you want.

    select h.hour,c.name from data_table

    join hour_table as h on h.ref = c.hour_ref
     

    Code:


    Post Edited by Chris Collins at 01/27/09 17:56
  2. I usually do this. select name,date,value from table where date = curdate()

    • Draw a chart of type line in the summary band

    • Edit the properties of the chart

    Click on the chart tab

    Click on edit chart properties

    Click on the chart data tab.

    Click on details tab.

    Click on add.

    • For series expression use $F{name}

    • for category expression use $F{date}

    • for value expression use $F{value}

    • Run the report



    Post Edited by Chris Collins at 01/23/09 20:21
  3. do this in your query..

    not tested and There are much better ways to do it but this is simple and readable.

    (SELECT site,"1" as n FROM site_table LIMIT 1,1)union(SELECT site,"2" as n FROM site_table LIMIT 2,1)union(SELECT site,"3" as n FROM site_table LIMIT 3,1)etc[/code]

    or build your own data source but that is a big topic.



    Post Edited by Chris Collins at 01/20/09 21:14



    Post Edited by Chris Collins at 01/20/09 21:15
  4. So, I have this simple query


    which will return two rows and one column

    I keep getting the above error on the compile of the report but unlike normal errors it does not tell me where this token is.

    I have been useing this query for a couple of years on several reports so I must have done something.

     

    Has anyone seen this before?

    Code:
    select type FROM node_ref_table where type = 'OPRA' or type = 'IDN_RDF'group by type
×
×
  • Create New...