Custom report API error

Comments

7 comments

  • Official comment
    Flex Customer Success Team

    Hey Bill,

    Custom reports aren't covered by our Training or Support departments due to the intricacies of using third-party software but I can offer a little assistance.

    First, I recommend downloading the source code from the original OOC report again and starting over. I ran a test for myself to be sure that if I downloaded the code, entered it into Jaspersoft, and re-uploaded it as a Custom Report, it'd work in Flex, so it sounds like something minor may have changed. I've accidentally scrolled over a setting in Jaspersoft without realizing that ultimately caused a similar error.

    In my test, I noticed that the direct source code generated a blank document. I fixed this by adding a Business Location parameter since the original version also has one. You can add a parameter by clicking on the 3 dots next to the custom report and then clicking "Configure Parameters". The parameter that I added was captioned "Location", the Key is "LOCATION_ID" (this can be found within the source code of the report), and the Type is "Business Location". Lastly, the parameter in Jaspersoft was set to isForPrompting="false" ...I found that it needed to be true to work correctly.

    Hope that helps!

    Nick Nazario - Customer Success Manager

    Comment actions Permalink
  • Bbowers

    Thanks Nick. The report I'm trying to modify is the Serialized Container Manifest (global) report. Nothing wrong with the one that came with Flex, I just don't like the way it looks.  (The printing is too small and the logo is too big). None of the suggestions you gave me helped, But I sure appreciate you taking the time to respond. I'll keep kicking it around and see what I can come up with. Thanks again.

    0
    Comment actions Permalink
  • Aaron Horn

    Hey Bbowers, might be a library issue.  If you want some 3rd party help, let me know. I offer custom reports as a service. Thanks.

    Aaron Horn
    Flex Consultant (endorsed by Flex)
    aaronjhorn@gmail.com

    0
    Comment actions Permalink
  • Justin King

    Bbowers,

    Did you make sure that you changed the compatibility mode in Jaspersoft Studio to be 6.1.1?

    From the online Flex manual in the Designing Custom Reports section:

    1. Download and Install Jaspersoft Studio

    While the engine used to render reports is JasperReports and it's possible to create report source files by directly editing the XML, most people prefer to use a report design tool. For JasperReports, this tool is called Jaspersoft Studio. Jaspersoft Community offers free-to-download software, but does require a free account to do. Download the correct version for your operating system here.

    Once installed, be sure to change the compatibility mode to match the version in Flex, which is currently 6.1.1 - instructions to change this are available here.

     

    1
    Comment actions Permalink
  • Randy - Flex Staff

    Justin has it. You're trying to run a report with a newer library version and the current report engine uses 6.1. JasperReports Studio will make these changes when you hit save without setting the correct library version.

    1
    Comment actions Permalink
  • Bbowers

    Yeah. That's what it was. Apparently I need new glasses. I had it set to 6.11, not 6.1.1. Thanks everyone for your help.

    1
    Comment actions Permalink
  • Justin King

    Glad to help!

    0
    Comment actions Permalink

Please sign in to leave a comment.