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

mmflynn

Members
  • Posts

    82
  • 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

Everything posted by mmflynn

  1. JasperReports Server looks for the license file in three places: the WEB-INF folder, the user's home directory, and any arbitrary location specified by the -Djs.license.directory JAVA_OPTS setting. You can set this directory to whatever you want, and I presume you could also use a variable instead of an explicit directory. You can learn more about license file management on Linux here: http://www.jaspersoft.com/scorm_data/InstallingJasperReportsServer5forLinux_9565/data/tpc/1e585ce4-243e-46ae-8cc5-8f862afbd82f/topic.html?directlaunch&Mode=T Mary Flynn Jaspersoft
  2. This issue has been resolved. Customers with active support subscriptions can contact Technical Support and request the hotfix for issue #33210. Note that this issue only occurs if you download JasperReports Server version 5.2.0 and install it on EC2. Mary Flynn Jaspersoft
  3. Hello - can you provide a bit more info on what you did (if anything) after accepting the terms? The recommended path is documented here: http://community.jaspersoft.com/jaspersoft-aws/launch Did you click one of the Cloud Formation scripts? If so, which one? Sorry you're running into this trouble. Hopefully we'll get you on track quickly. Mary Flynn Jaspersoft
  4. Glad to see that you solved the problem. Thanks for the follow up post with the solution! Mary Flynn Jaspersoft
  5. Jaspersoft BI for Amazon Web Services requires very little systems management. Despite its greatly reduced need for administrative intervention, on occasion you may need to connect to the server's file system to retrieve log files, upload licenses, edit configuration files, or run commands from a console interface. There are a variety of utilities you can use to accomplish these tasks. This article demonstrates file transfer using a third-party utility for Microsoft Windows called WinSCP. Command line interactions are shown using the AWS console "Connect from your browser" feature. These two utilities were chosen because they are the easy to explain and use for their use cases. You may be familiar with and prefer other methods, such as PuTTY, ssh command line utilities, and so on. File TransferThis section demonstrates an easy way to move files back and forth between the Linux server running JasperReports Server on AWS and your local computer. (Note: The client computer for this example runs Microsoft Windows.) File transfer use cases include: Uploading a Jaspersoft license file from your local computer to JasperReports ServerDownloading log files for troubleshootingUploading database drivers, custom data source files, and so onRequirementsThe public IP address or hostname of the AWS server instance running JasperReports ServerThe Public key name associated with the server instanceThe path to the Private key file that works with the Public key mentioned aboveA file transfer utility such as WinSCPImportant: If using WinSCP, the Private key file must be converted to the .ppk file format. Use the Puttygen "import key" utility to convert from .pem to .ppk file formats. See Dealing with Private Keys in Other Formats for more information.Login username: ec2-userSteps to Transfer FilesRun the WinSCP application from the Windows Start menu.Click New. Use the following values:Host Name (or IP address)Port number: 22User name: ec2-userPassword: leave blankPrivate key file: navigate to the Private key fileProtocol: SFTPClick Save. The default session name will follow the standard user@host, e.g., ec2-user@bdsandbox7. You can change it if you want. Click OK.Click Login to connect. Your local file system appears in the left panel and the remote AWS computer appears in the right. You can now easily copy files back and forth between systems. WinSCP ExtrasEditing Files with WinSCPYou can double-click and edit text files directly from the WinSCP interface. A copy of the file will be downloaded and opened in a text editor. When you save the file, it will be copied back to the server. Command Line Interactions with WinSCPWinSCP includes a Commands menu. From it you can click Open Terminal, which allows you to run a single command at a time, or Open in PuTTY, which opens a full command line console if you have PuTTY installed. Command Line InteractionsThe AWS console provides a command line utility that runs in a Java-enabled Web browser window. It is documented on the AWS web site. Command line interactions use cases include: Starting, stopping, restarting or checking the status of JasperReports ServerRunning any Linux commandRequirementsAccess to the AWS ConsoleThe path to the Private key file that works with the Public key used by your server instanceSteps to Open a Command Line Window from the AWS ConsoleLogin to the AWS console, e.g.: https://<yourOrganization>.signin.aws.amazon.com/console From the AWS Console Home page, click EC2Click Instances from the side bar or Running Instances from the top level summaryLocate your instance and right-click itFrom the Instance Management pop-up menu, click ConnectThe Public DNS and Private Key name will be entered for you. Complete the following:User name: ec2-userPrivate key path: enter the path to the Private key file that works with the Public Key named on-screen.Click Launch SSH ClientWhen prompted to run the application named com.mindbright.application.MindTerm, click RunIf prompted to add the server's fingerprint to the cache, click YesYou can now run any Linux commandFor More InformationAWS Documentation: Getting a Key Pair AWS Documentation: Getting Started with Amazon EC2 Linux Instances, Step 3: Connect to Your InstanceJaspersoft Community Article: How to Produce Clean Log Files for TroubleshootingJaspersoft Community Article: Applying Your Jaspersoft Product License(s)
  6. Hi Pete - I don't have quite enough information to help you troubleshoot, so I'll start with a few helpful links in case you haven't found them already. If the problem persists, please write back with the details of your data source type. Omit things like your password, of course. Connect to AWS Data Sources wiki article and connection best practices video: http://community.jaspersoft.com/jaspersoft-aws/connect FAQ: Can I connect to on-premise databases?: http://community.jaspersoft.com/wiki/jaspersoft-bi-aws-frequently-asked-questions#Can_I_connect_to_on-premise_databases Good luck, Mary Flynn Jaspersoft
  7. Hi - I haven't seen this problem before. The error message would help. Forgive me if this suggestion is much too elementary, but check the field width. The field may not be wide enough to show the desired formatting. Make the field wider. You didn't mention if you tried running the report. Do you get a different result in design mode and preview mode? Good luck, Mary Flynn Jaspersoft
  8. Notice from Jaspersoft: Version 5.2 of JasperReports Server is currently not certified to run on Amazon EC2. A software defect has been identified that generates an error when creating a new data source. The defect is in the processing of being fixed. The error message is: java.lang.IllegalStateException: Exception occurred rendering view org.springframework.web.servlet.view.JstlView: name 'modules/addResource/dataSource/addDataSourceAws'; URL [/WEB-INF/jsp/modules/addResource/dataSource/addDataSourceAws.jsp] Workaround options: Downgrade to version 5.1.Watch this thread for notification of the defect fix.Use the Jaspersoft BI for AWS service as instructed at http://community.jaspersoft.com/jaspersoft-aws/launch. This includes the certified version of Jaspersoft for AWS. Note that Jaspersoft BI for AWS is a pay-as-you-go service offered by Amazon Web Services.
  9. Since you pose the question as to what's easiest, I'd say that the easiest is to restart AWS. Otherwise you can use something like PuTTY to connect to the server (you will need your private key and when prompted, log in as ec2-user). Then run "service tomcat7 stop". Make sure everything shuts down ok. Then run "service tomcat7 start". Again, it's easier to just restart the AWS instance. Be sure you don't terminate it! Mary
  10. Hi John, You can customize this, but it does require you to edit an xml file and restart the server. So be prepared with SSH or WinSCP to access the files on your AWS box and make sure that users expect a restart. The file you want to backup and then edit is: ../webapps/jasperserver-pro/WEB-INF/applicationContext-adhoc.xml Search for "defaultTopicDir" and you will find the following lines: <property name="defaultTopicDir" value="/adhoc/topics/"/> <!--<property name="defaultTopic" value="sample1"/>--> <property name="defaultTopic" value="AdhocDemo"/> Hopefully it's clear that you change the default Topic directory by entering the folder name - in your case you would change "/adhoc/topics/" to your preferred folder. I added the "defaultTopic" line as well - the default is a sample that ships with Jaspersoft. One thing that I want to bring to your attention is that you usually want to have a folder dedicated to Topics. So in your case you have a folder called /OurCompany. In that, you probably want a folder named /OurCompany/topics. This is because all JasperReports units found in the "defaultTopicDir" folder appear in the Ad Hoc Topics chooser. You probably don't want all JasperReports units to show up. (Then again - you might - I just want you to do it purposefully if that's the case.) Save the changes (plain text file format, of course). Restart JasperReports Server / Tomcat. You should then be all set. Mary FlynnJaspersoft
  11. Timy2 - I'm not a SQL or PostgreSQL expert, but I can offer you an idea that may be able to help you. Jaspersoft runs database queries, which are naturally read-only transactions. Your complex SQL statement includes sub-queries. A quick web search yielded this, from http://www.postgresql.org/docs/9.1/static/sql-select.html: "Just as in a table, every output column of a SELECT has a name. In a simple SELECT this name is just used to label the column for display, but when the SELECT is a sub-query of a larger query, the name is seen by the larger query as the column name of the virtual table produced by the sub-query". It appears that the SQL is invoking a "write" transaction. The cleanest way to handle this is to use an ETL process to transform and load the data into a table so it can be easily queried. It's possible you could make a stored procedure that sets the transaction type, but that may not be allowable and I wouldn't recommend it strictly from a security point of view. I hope this helps. Mary Flynn Jaspersoft
  12. Hi Reyner - You are starting and stopping JasperReports Server correctly. If you want JasperReports Server to start as a service (rather than using ctlscript.sh), you can find an example of how to do that in the jasperreprots-server-5.1/scripts/linux directory. It's hard to say what is causing the 404 error. If Tomcat loads, then JasperReports Server should be running. My best suggestion right now is to check the log files. This article provides more detail than what you need, but it gives you a good understanding of where the files are located: http://community.jaspersoft.com/wiki/how-produce-clean-log-files-troubleshooting. I hope this helps. Mary Flynn Jaspersoft
  13. Hi John - Based on your reference to the Freight report, I assumed you're using iReport and not the Ad Hoc report designer. If you're using Ad Hoc, then I need a bit more info on exactly what you're doing. Otherwise, continue on. Mastering the input control is very liberating. What you ran into is the flip side of a feature that is flexible and powerful. Unfortunately it was not obvious. I'll use your suggestion of the Freight report as an example. When you edit the Freight report unit and click the Controls and Resources tab, you see three input controls: Country, RequestDate and OrderId. These input controls were created to be part of the report unit. You can think of them as tightly bound. I recommend that you NOT set them up this way, but as reusable controls, but you'll learn that when you get to the reference material at the end.. To see how this input control is defined, click on it. The Locate Input Control opens, and as you note, there are two choices. The first is what you want, and it really should read "Define or Edit an Input Control in the next step." Click Next. On the Create Input Control page, you can type anything you want for the prompt. It could be as simple as "Country" or more elaborate, such as "Select a country from the list", etc. The really really important part to making the input control work with your report is to exactly match the Parameter Name. This value needs to be the same spelling and case as the parameter in your report. References on how to do this at the end of this post. Back to the example. The Type selected for this input control is "Single-select Query". Click Next. The Locate Query page appears. Again, the first option should read "Define or Edit a Query in the next step." With that selected, click Next. The next three steps walk you through naming the query as a resource, selecting its data source (what are you going to query) and then the query itself. After you click Save, you'll see the Set Parameter Values page. It's not important for our example, and it can be confusing or seem redundant. For our example, just click Submit. Now, I'll tell you the reason for this page. Assume for a moment that your database includes two columns - one for the Country name (e.g., type = varchar) and another for the Country code (e.g., type = smallint). For the sake of efficiency, maybe you want to use the Country code (e.g., smallint) in the database WHERE clause instead of the varchar. But to minimize human error, you want to present the list of country names (e.g., varchar) to the user. This page allows you to do that with the "value" and "visible" columns. In this hypothetical example, the visible column could be country name and the value could be country code. To make this work, the SQL statement on the previous page needs to include both columns, e.g., something like this: select country, countryCode from ORDERS group by countryCode order by country I added the order by so the country names would be in alphabetical order for the humans. If your data is pre-sorted in the database it may not be necessary. Hopefully this gives you enough to accomplish your near-term goal. Here's more information to help you out: Online help: http://help.jaspersoft.com/js-help-v5-en//Default.htm#search-input control http://help.jaspersoft.com/js-help-v5-en//Default.htm#js-help/Query_based_Input_Contro.htmhttp://help.jaspersoft.com/js-help-v5-en//Default.htm#js-help/Input_Controls.htmJasperReports Server Administration Guide, sections 4.3 and 4.4: http://community.jaspersoft.com/documentation/jasperreports-server-administration-guide iReport Ultimate Guide, section 6.2.1 Using Parameters in a Query: http://community.jaspersoft.com/documentation/ireport-ultimate-guide I hope this helps. Mary Flynn Jaspersoft
  14. If the data type is numeric, then unfortunately you do not have the list-of-values filter operators. You could consider changing the source data type from numeric to varchar/text. Sorry I cannot think of a better alternative. Mary Flynn Jaspersoft
  15. Hello there - You are right to use the Domain designer display features. If the field contains pseudo guid values, you will be best changing the type from "measure" to type "field." When you set a field to type "Field" the summary function list only makes functions count and distinct count available. Let me know how this works for you - good luck! Mary Flynn Jaspersoft
  16. Yes. Since you own and control the server, it's not possible for Jaspersoft to provide a certificate for you ahead of time. But you may configure SSL on yourJaspersoft BI for AWS instance exactly as you do on other servers. For more information, refer to the JasperReports Server Ultimate Guide, Chapter 8: Application Security. Mary Flynn Jaspersoft
  17. Can you ssh into the server? This wiki article explains where the log files are and offers advice to cleaning them up so you can focus on the current problem: http://community.jaspersoft.com/wiki/how-produce-clean-log-files-troubleshooting. Mary Flynn Jaspersoft
  18. Filtering on an aggregate value can be done in the Crosstab ad hoc view if using Jaspersoft OLAP (not included with Jaspersoft BI for AWS) as the data source, or in JasperReports at the query with the GROUP BY and HAVING clauses. This link may help: http://www.w3schools.com/sql/sql_having.asp. Mary Flynn Jaspersoft
  19. mmflynn

    DataSources

    JasperReports Server can connect to just about any data source. JasperReports Server comes standard with connection wizards for JDBC, JNDI, and Bean (Java bean) data sources. Jaspersoft also offers an extensible environment for including custom data sources in screens etc. Check the JasperServer Users Guide for details. Acquire the Database Driver PackageJasperReports Server redistributes a Postgres database driver. If you need to connect to another database, you will need to acquire the appropriate driver and add it the application server's classpath. Here are some links that may assist. Check with your DBA to ensure you are using the correct driver. MySQL driver: http://dev.mysql.com/downloads/connector/j/ jTDS driver for SQL Server and Sybase: http://jtds.sourceforge.net/ Microsoft SQL Server: http://msdn.microsoft.com/en-us/data/aa937724.aspx Oracle: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html PostgreSQL: http://jdbc.postgresql.org/ Pervasive: http://www.pervasivedb.com/psqlv11/Pages/Default.aspxExtract the downloaded files to an easily accessed location. For example, c:jdbc or /usr/share. Locate the actual driver name. You will copy it to the classpath in the next step. Sample driver names include: MySQL: mysql-connector-java-5.1.18-bin.jar jTDS: jtds-1.2.2.jar Microsoft SQL Server: sqljdbc4.jar (for JDK 1.6/6.0), sqljdbc.jar (JDK 1.5/5.0) Oracle: ojdbc14.jar, ojdbc6.jar PostgreSQL: postgresql-8.1-407.jdbc3.jar Pervasive: jpscs.jar, pvjdbc2.jar, and pvjdbc2x.jarCopy the Driver to the ClasspathYou need to copy the driver (the .jar file) to the classpath. In general it's best to copy the driver to the application server's shared library location. Refer to your application server documentation for exact locations. Sample locations include: Tomcat5: commonlib (for example: C:/Program Files ( x86)/jasperreports-server-4.0/apache-tomcat/lib ) Tomcat6: lib ( for example: /var/lib/tomcat6/lib ) JBoss5: serveralllibOptional JNDI ConfigurationYou can define a JNDI connection in your application server. The database drivers must be in the application server's shared library classpath (see the previous section). The technique you use to define the JNDI connection will vary by application server. For Tomcat, you can define the JNDI connection within JasperReports Server by editing /webapps/jasperserver-pro/META-INF/context.xml. Use the sample configurations as a guide. Restart JasperReports ServerRestart the application server. If you installed JasperReports Server using the Windows installer, there is a shortcut in the start menu to restart it. Define the Data Source in JasperReports Server Log into JasperServer's web site. http://localhost:8080/jasperserver-pro Go to View | Repository. Click the second icon called Add Resource and select Data Source. Choose a data source type and click next. Provide any Name, Label, and Description. If you selected the JDBC connection type, you will typically enter values such as these samples:MySQL Connector/J driver: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/sakilajTDS (for Microsoft SQL Server) driver: net.sourceforge.jtds.jdbc.Driver url: jdbc:jtds:sqlserver://host:1433/yourDatabase url: jdbc:jtds:sqlserver://host:1433/yourDatabase;intance=yourInstanceMicrosoft SQL Server driver: com.microsoft.sqlserver.jdbc.SQLServerDriver url: jdbc:sqlserver://host:1433;databaseName=yourDatabaseOracle (thin driver) driver: oracle.jdbc.OracleDriver or oracle.jdbc.driver.OracleDriver url: jdbc:oracle:thin:@host:1521:your_db_instance_name example url: jdbc:oracle:thin:@remotehost:1521:orcl example url: jdbc:oracle:thin:@localhost:1521:xePostgreSQL driver: org.postgresql.Driver url: jdbc:postgresql://host:5432/yourDatabasePervasive driver: com.pervasive.jdbc.v2.Driver url: jdbc:pervasive://localhost:1583/DEMODATATroubleshootingIf it doesn't succeed, save anyway and restart the JasperReports Server and watch for any exceptions.
  20. IntroductionIn this article, we show how to set up a multi-tab landing page for users based on their roles and organizations, so that when a user logs in, we get something like the screenshot below: To get this example working, we assume that you have installed the sample Foodmart database. If you are not using the sample database, you can easily adapt this solution to your own test environment. This procedure works for JasperReports Server v4.5. Installation ProcedureDownload the resource packageFilesForTabstest.zip - commonJSTLScripts.jsp goes to the /jasperserver-pro/WEB-INF/jsp/modules directoryhome.jsp and homeForTabs.jsp go to the /jasperserver-pro/WEB-INF/jsp/modules/home directoryViewReport.jsp goes to the /jasperserver-pro/WEB-INF/jsp/modules/viewReport directorycontrol_tabSet.jsp goes to the /jasperserver-pro/WEB-INF/jsp/templates directory, which contains these files: DirectoryFile namePurposesuperuser_upload_to_themestabstest.zipa new theme that turns off menus and search boxes (works with 4.5 and below only)WEB-INF/jsp/modules/commonJSTLScripts.jspmodified to include a function to switch tabsWEB-INF/jsp/modules/homehome.jspmodified to include a tabbed home page WEB-INF/jsp/modules/homehomeForTabs.jspa new file that displays a tabbed view of reports or dashboards for the home pageWEB-INF/jsp/modules/viewReportViewReport.jspmodified to turn off the Back button so users do not inadvertently see the Repository Browser (not working or needed for Jaspersoft 5 and above)WEB-INF/templatescontrol_tabSet.jsp Place them in a working directory. Make backupsThe first thing is to back up the files we're about to overwrite. In a backups directory, copy these files over from the the web application's root directory: /jasperserver-pro/WEB-INF/jsp/modules/home/home.jsp/jasperserver-pro/WEB-INF/jsp/modules/commonJSTLScripts.jsp/jasperserver-pro/WEB-INF/jsp/modules/viewReport/ViewReport.jsp/jasperserver-pro/WEB-INF/jsp/templates/control_tabSet.jspCreate sample user with sample roleFor this example, you'll need to create a test user with the right role: Login as the superuserGo to "Manage -> Roles"Make sure that "Organization" is selected on the left-hand sideAdd the role, and label it ROLE_TABTEST; make sure it's this and that it's uppercase - it needs to match what we see in the home.jsp fileGo to "Manage -> Users"Make sure that "Organization" is selected on the left-hand sideAdd a new userAssign the role "ROLE_TABTEST" to that new userUpload the sample themeStill as the superuser, go to the repository, and browse to the organization's Themes folder, which you can find under /Organizations/Organization/Themes. Right-click on the Themes folder and choose the "Upload Theme" option, and upload the tabstest.zip file. Make sure to name that theme tabstest. The ViewReport.jsp file depends on that value to hide the back button. Stop the Tomcat serverNow you'll need to stop the Tomcat server do properly replace the JSP files and do some cleanup on the server-side files. Replace the JSP filesYou previously backed up some files we're going to overwrite, so now we're ready to put in our custom files. commonJSTLScripts.jsp goes to the /jasperserver-pro/WEB-INF/jsp/modules directoryhome.jsp and homeForTabs.jsp go to the /jasperserver-pro/WEB-INF/jsp/modules/home directoryViewReport.jsp goes to the /jasperserver-pro/WEB-INF/jsp/modules/viewReport directorycontrol_tabSet.jsp goes to the /jasperserver-pro/WEB-INF/jsp/templates directoryClear Cached JSPsWe'll also need to do a bit of clean-up on some server-side files. Tomcat processes JSP files first into JAVA files and then compiles them to CLASS files, which it stores in a working directory that it uses as a cache; this is a normal server optimization that saves Tomcat the trouble of having to compile a JSP file for every single request. So that we're sure that it's taking the latest JSP, we're going to have to clear out those files from the cache directory before we re-start Tomcat. Browse to the Tomcat root directory, and then find this subdirectory: /apache-tomcat/work/Catalina/localhost/jasperserver-proorgapachejsp. Under that directory, you'll find another subdirectory typically called WEB_002dINF; it may vary in your particular situation. Under that directory, you will find the JAVA and CLASS files that correspond to each JSP file; find them and then delete them. For example, under the /WEB_002dINF/jsp/modules/home directory, you'll find home_jsp.java and home_jsp.class; go ahead and delete these two files as well as all the other JSP files that you overwrote. Restart the serverYou are now ready to restart the server! If you've followed the instructions up to now, you should be able to restart the server and login as the test user you created earlier. When you login, you should also find that you've landed in the multi-tab landing page. Explanation of the different filesThe home.jsp fileWhen a user logs in, the server will process the home.jsp file (which is found in the /jasperserver-pro/WEB-INF/jsp/modules/home directory) to decide which JSP to serve up as the landing page for the user. <!-- ~ Copyright © 2005 - 2011 Jaspersoft Corporation. All rights reserved. ~ http://www.jaspersoft.com. ~ Licensed under commercial Jaspersoft Subscription License Agreement --%>;<%@ page contentType="text/html" %>;<%@ taglib uri="/spring" prefix="spring"%>;<%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz"%><authz:authorize ifallgranted="ROLE_DEMO"> <jsp:include page="homeForDemo.jsp"> </jsp:include></authz:authorize><authz:authorize ifallgranted="ROLE_TABTEST|organization_1"> <jsp:include page="homeForTabs.jsp"> </jsp:include></authz:authorize><authz:authorize ifnotgranted="ROLE_DEMO"> <authz:authorize ifnotgranted="ROLE_TABTEST|organization_1"> <jsp:include page="homeForNonDemo.jsp"> </jsp:include> </authz:authorize></authz:authorize>[/code]If you compare it with the home.jsp that the product ships with, you'll notice the extra entries for the ROLE_TABTEST role; the entry is a rule that will serve up the homeForTest.jsp if the user has the "ROLE_TABTEST|organization_1" role assigned to them. This means that the role is specific to the organization, and is not a global role, like ROLE_SUPERUSER and ROLE_PORTLET. When creating the role, make sure to have the organization you want to create this role for properly selected! The homeForTabs.jspThis file will contain the references to the three reports or dashboards that show up in the three different tabs. If you are not working with the the sample reports and dashboards, all you have to do is replace the URL's parameter values with the ones that reference your own report or dashboard. You can define the three reports or dashboards to view here, within this Javascript function. All you have to do is replace the URL references that start with "˜flow.html' with the references to your own reports and dashboards. <script>function myFunct(var1) { var ifrm = document.getElementById('ifrm'); if (var1 == "opt1") { ifrm.setAttribute('src', 'flow.html?_flowId=dashboardRuntimeFlow&dashboardResource=/supermart/SupermartDashboard30&viewAsDashboardFrame=true'); } else if (var1 == "opt2") { ifrm.setAttribute('src', 'flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2Fsamples&reportUnit=%2Freports%2Fsamples%2FEmployees&viewAsDashboardFrame=true'); } else if (var1 == "opt3") { ifrm.setAttribute('src', 'flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2Fsamples&reportUnit=%2Freports%2Fsamples%2FAllAccounts&viewAsDashboardFrame=true'); }}</script>[/code]Further down, you'll find this JSP code that defines the tab labels and tab attribute names that the Javascript code above will use: <t:inserttemplate template="/WEB-INF/jsp/templates/control_tabSet.jsp"> <t:putattribute name="type" value="buttons"> <t:putattribute name="containerClass" value="horizontal"> <t:putlistattribute name="tabset"> <t:addlistattribute> <t:addattribute>opt1</t:addattribute> <t:addattribute>Dashboard 1</t:addattribute> <t:addattribute>selected</t:addattribute> </t:addlistattribute> <t:addlistattribute> <t:addattribute>opt2</t:addattribute> <t:addattribute>Dashboard 2</t:addattribute> </t:addlistattribute> <t:addlistattribute> <t:addattribute>opt3</t:addattribute> <t:addattribute>Dashboard 3</t:addattribute> </t:addlistattribute> </t:putlistattribute> </t:putattribute> </t:putattribute></t:inserttemplate>[/code]At the very bottom, you'll find the iframe tag, where you can populate the default tab to load in the src attribute: <t:putattribute name="bodyContent"><iframe frameborder="0" height="99%" hspace="0" id="ifrm" marginheight="0" marginwidth="0" scrolling="auto" src="flow.html?_flowId=dashboardRuntimeFlow&dashboardResource=/supermart/SupermartDashboard30&viewAsDashboardFrame=true" vspace="0" width="100%"></iframe></t:putattribute>[/code]The ViewReport.jsp fileThe customized ViewReport.jsp file contains extra code to hide the back button when the embed theme ("˜tabstest') is turned on. Notes This article was originally published for version 4.5, this continues to work in version 5.0 (except for the optional ViewReport.jsp, this wasn't tested). The theme won't work with 5.0 eitherIn the homeForTabs.jsp page you might get a security error if you sue the /path/like/this, you'll need to encode it with this tool to %2Fpath%2Flike%2FthisYou might consider modifying the theme (file container.css) to remove extra space at top of margin:.column.decorated.tabbed.showingToolBar > .content > .body { margin-top: 64px;}[/code]
  21. Jaspersoft is hiring sales engineers! If you're good with technology, good with people, and enjoy mapping features to tangible business value, you may be just the person we're looking for. We have openings in the Americas and Europe: Multi-Lingual Sales Engineer Location: North America, ideally Miami FL or New York City The Multi-lingual Senior Sales Engineer applies technical expertise, customer relationship building, and basic team selling skills in order to support the sale of Jaspersoft software and services in the Americas. This support includes, but is not limited to: pre-sales strategy planning, technical fit qualification, professional product demonstrations, and applying BI industry knowledge and competitive expertise throughout the sales cycle. The Multi-lingual Senior Sales Engineer is responsible for the success of the prospect’s technical evaluation and perceived value of the software solution as a whole. The Multi-lingual Senior Sales Engineer supports multiple account managers and must be able to identify, prioritize, manage, and communicate issues both internally and externally. English and Spanish fluency is required; Brazilian Portuguese is desirable. Sales Engineering Team Leader - Europe Locaiton: Paris, France Reporting to the Director of Worldwide Sales, the Sales Engineering Team Leader applies technical expertise, customer relationship building, and basic team selling skills in order to support the sale of Jaspersoft software and services. This support includes, but is not limited to: pre-sales strategy planning, technical fit qualification, professional product demonstrations, and applying BI industry knowledge and competitive expertise throughout the sales cycle to win business. The Sales Engineering Team is ultimately responsible for the success of the prospect’s technical evaluation and perceived value of the software solution as a whole. Working both as Team Lead and as a Sales Engineer, the Sales Engineering Team Leader works closely with Sales Representatives to drive the prospect’s pre-sale technical evaluation process. Posted by: Mary Flynn Director of Worldwise Sales Engineering, Jaspersoft
  22. Error: Packet for query is too large[toc on_off::hide=1] Caused by:com.mysql.jdbc.PacketTooBigException: Packet for query is too large (2257806 > 1048576). You can change this value on the server by setting the max_allowed_packet variable. CauseMySQL Server's default max_allowed_packet value is 1MB. You must increase the max_allowed_packet to meet the maximum file size of documents you want to store in the Jaspersoft repository. ResolutionTo determine how large to set the max_allowed_packet value: Run the largest report and export it to your desired file format (PDF, XLS, etc.). Save the file to disk to determine its file size. As the MySQL administrator, update the mysqld max_allowed_packet property.For example, if your largest exported file is 35 MB large, then make the following edit in my.ini. #SERVER SECTION [mysqld] max_allowed_packet = 35M Restart MySQL for this change to take effect.
  23. Hi luciano_castro, Giulio and I came across your post while troubleshooting the same error message from a customer. It seems like it's a subtle design issue. I can recreate your scenario by creating two simple parameters: parameter1, type string, no default value parameter2, type string, default value = $P{parameter1}iReport returns Error:null when you click Read Fields in the Report query box. In this scenario the default value for parameter2 is "null" because that's the value for parameter1. Set a default value for parameter1 and the field list is returned. It seems like you may have a similar issue where at least one parameter has a default value that is evaluating to null. In my customer's case the default value is being set by a custom method and we need to work that out. In your case I hope it's as simple as the example above. Good luck! Mary Flynn Jaspersoft sales engineer
  24. Hi Chris, I don't know if this will point you in the right direction for your app or not. But there are two resources you can try. One is a white paper called "Customizing and Rebranding the JasperSoft User Interface." The section, "Extend a Page Flow" might get you started with some ideas: http://www.jaspersoft.com/re_overview.html#whitepapers. The better more comprehensive resource is Chapter 9 of the JasperServer Ultimate Guide. The JS Ultimate Guide is included with JS Pro or you can purchase a copy at http://www.jaspersoft.com/JasperShop_Documentation.html. The Ultimate Guide covers Pro and Community Edition. Good luck! I'd love to see what you end up with... :) Mary
×
×
  • Create New...