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

kburns

Members
  • Posts

    92
  • 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 kburns

  1. Right now when a normal user creates a schedule they can see it and so can the admin. However when an admin creates a schedule it is only viewable by the admin.

    Is there anyway around this? I would like regular users to view (and hopefully edit) admin schedules.

    Also, I'm running JasperServer 4.5.1.

    Thanks


  2. I have a dropdown input control where the user selects a number 1 to through 10. Lets call the parameter $P{myNumber}. I've tried having $P{myNumber} as both {{java.lang.String}} and {{java.lang.Integer}}. Inside my query I'd like to use datediff. Normally I would do something like this to get today's date minus 5

    datediff(dd,5,convert(varchar,getdate(),101))

    Now I'd like to use $P{myNumber}. For example:

    datediff(dd,$P{myNumber},convert(varchar,getdate(),101))

    Has anyone done this kind of thing? I can't get it to work, and as I said, I've with $P{myNumber} as both {{java.lang.String}} and {{java.lang.Integer}}, and also using the ".intValue()"

  3. Hi mgeise - 

    I am not entirely sure what the phrase "Domain Report" means in jasper, but I assume it is a report created in iReport that runs on a remote server. Is this correct? And if so, this is basically what iReport is intended for, right?

    I found a work around that involves manually editing the JRXML file and changing <queryString> and <field>'s 

    <queryString>
        <![CDATA[select zxcv from dfgh where $X{IN, dfgh, dfgh}]]>
    </queryString>
    <field name="asdf" class="java.lang.String"/>
    

    This works, but its an ugly hack and this feels like the kind of functionality that iReport is intended to do, but maybe I am missing something here? (very likely :-)

    I created a support ticket for this and it was flagged as a bug/defect, so we'll see where they go from here.

  4. I'm running JasperServer 4.5, and getting this error when I click "Read Fields".

     

    Error:Sourced file:inline evaluation of: `` my.customzied.java.class '': Class: com.jaspersoft.jasperserver.api.metadata.user.domain.impl.client.MetadataUserDetails not found in namespace

    I don't think this has anything to do with my.customzied.java.class because I have no problem displaying that parameter in the title/page header.
     
    Any ideas? What am I missing?

     

  5. Hey there.

    I have an implementation of the jasper web services that uses a common jquery datepicker calendar. Problem is that our production servers live in Texas on CST, but I am in DC on EST. My web browser sends 12/6/11 12:00 AM EST (midnight) and it is interpreted as 12/5/11 11:00 PM CST by the jasper server.

    Any recommended ways to fix this?

    Should I send the local browser's timezone as a parameter to my web services code?

  6. I wanted to set a variable in the jasperreports.properties that will apply globally to all reports. however it did not work.

    Here is what I did...
     
    1. Shutdown tomcat
     
    2. Add the following line in WEB-INF/classes/jasperreports.properties
    net.sf.jasperreports.export.xls.white.page.background=false
     
    3. Restart tomcat
     
     
    Am I missing something? I should not need to re-compile/re-deploy, right?
    Thanks!
     
  7. When I export to XLSX my dates (java.sql.Timestamp) are left blank. The text field's expression class is set to java.sql.Timestamp.

    However when the expression class is java.lang.String this works: new SimpleDateFormat("MM-dd-yyyy").format($F{start_date})

     

    Any idea why this is happening? Is this a known issue?

    I am using JasperReport Server Professional 4.0.1 and iReport Designer 4.0.

     

     

  8. To answer my own question, I implemented like so.

                JasperPrint print = client.runReport(rd, reportInputMap);                 .... bunch of code ....            JRAbstractExporter myExporter;            .... bunch of code ....            myExporter = new JRXlsExporter();            response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");            myExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, response.getOutputStream());            myExporter.setParameter(JRExporterParameter.JASPER_PRINT, print);            myExporter.exportReport();

  9. First off I am working with version 4.0.1. So far I have come across these differences when comparing the JasperServer browser interface and my Web Services implementation.

     

    XLSX files

    1. My integration has the report padding (10px on the top, bottom, left, right) but the server interface does not.

     

    XLS files

    1. My integration displays whited out column/row lines where the server interface does not

    2. My integration shows ".15%" where the server interface shows "0.0015".

     

    I thought these format settings were part of the report as defined in iReport and I would not need to explicitly set when exporting. 

     

    Has anyone come across this problem?

    When my code exports the files, where can I find these settings and how can I set them?
  10. I'd like to clean up the structure of my repository because its become quite bogged down. Part of this is changing report ids (URI).

    iReport won't let me do this with the properties dialog. Is there anyway to do this on from within JasperServer? Or perhaps there is a trick within iReport that I am missing?

     

  11. Looks like this feature if only available in the Enterprise edition, and I am working with Professional :-(

    I don't need a thorough audit. I'd just like to know how often a report is being run. Don't need to know who runs it and what params they are using.

    Does anyone know if there are specific log files I can look at that might give some insight into this?

     

  12. I have a report with two subreports. The first subreport is very short, the second one is quite long. I would like the exported spreadsheet to have a single sheet/tab for each of these two subreports.

    In the main report's layout, the two subreports separated by a page break.

    When I export (or just view the html in the browser), the page break appears after the first subreport, but the second one is then chopped into several more pages (because its very long).

    Now I could make the main report a million pixels in height, but that would be an ugly hack making the first subreport appear with data in the first 10 rows and followed by thousands of empty rows.

    How can I fix this?

    (It is driving me mad.)

     


    Post Edited by kburns at 09/07/2011 21:49
  13. I'll be a bit more specific on my scenario.

    I have an interger input and have successfully used the "Minimum Value" and "Maximum Value". So minimuj = 5, maximum = 7. The input has to be either 5, 6, or 7.

    That make sense.

    So now I would like to have a date input. And the maximum date they can choose should be today.

    My question is: How can I do this? 

     

     

    The integer stuff was pretty self explanatory, but as usual no documentation exists on this.

     

    Surely someone has used this feature. Any ideas?

     

     

  14. brooneyx1
    Wrote:

    I suggest that you  export all the jrxml files and then  use linux tools like grep, sed, etc to make the changes. Then import them back into place. I always keep a exact copy of the jrxml files on disk (subversion or csv), then these changes are much easier to do.

     

     

     

    Unfortunately I do not yet have mine in a code repository. Is there an easy way to export all reports to jrxml files all at once?

     

×
×
  • Create New...