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

swood

Members
  • Posts

    2,039
  • 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 swood

  1. The attributes of the SwapFileVirtualizer are:

    public static final int DEFAULT_MAX_SIZE = 200;
    public static final int DEFAULT_BLOCK_SIZE = 4096;
    public static final int DEFAULT_MIN_BLOCK_GROW_COUNT = 100;

    public SwapFileVirtualizerFactory() {
            // default values
            maxSize = DEFAULT_MAX_SIZE;
            tempDirectory = System.getProperty("java.io.tmpdir");
            blockSize = DEFAULT_MIN_BLOCK_GROW_COUNT;
            minBlockGrowCount = DEFAULT_MIN_BLOCK_GROW_COUNT;
    }

     

    So directory is not right. tempDirectory is correct, and the default is the Java temp directory.

     

    Sherman

    Jaspersoft

  2. You could create a bean or a custom data source for JasperServer that caches the data.

     

    Have a scheduled report that uses your data source that runs daily that will reload the data into memory.

     

    Other reports using the data source will use the cached data.

     

    Sherman

    Jaspersoft

  3. You can do this with an iFrame where the JasperServer screen is in the iFrame.

     

    You probably will need to do some single sign on between your web site and JasperServer.

     

    If you add "decorate=no" to the URL that goes to JasperServer, you will not see JasperServer menus and other surrunding content.

     

    You can also integrate via web services. There are example PHP and JSP applications in the JasperServer source distribution that do this.

     

    Sherman

    Jaspersoft

  4. For a queryExecuter to work so that it picks up the queryString in the JRXML, you need to make sure that you do not set the JRParameter.REPORT_DATA_SOURCE in the parameter map. If you set REPORT_DATA_SOURCE, the queryString in the JRXML will be ignored.

     

     

    A lot of report data sources cannot be used in query input controls, because they lack result set field types and possible additional data that some data sources which is in the field description tag in JXML. If a data source type can be used in a query input control, the way to make it appear on the query maintenance screen for query input controls is as you found: adding the queryLanguage into the queryBeans.xml.

     

    Sherman

    Jaspersoft

     

  5. You will need to change the OlapModelController to get the data source info parameter out of the HttpRequest.

     

    Add the parameter into the ExecutionContext that is passed to:

            OlapModel model = getOlapConnectionService().initializeOlapModel(executionContext, olapUnit, sess);

     

    In the OlapConnectionServiceImpl.getMondrianConnectProperties, get the data source value and inject it into:

                    connectProps.put(RolapConnectionProperties.Jdbc.toString(),
                            jdbcDataSource.getConnectionUrl());
                    String driverClassName = jdbcDataSource.getDriverClass();
                    connectProps.put(RolapConnectionProperties.JdbcDrivers.toString(),
                            driverClassName);

    or

                    connectProps.put(RolapConnectionProperties.DataSource.toString(),
                            jndiURI);
     

     

    Sherman

    Jaspersoft


     

×
×
  • Create New...