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

mundrameenaxi

Members
  • Posts

    33
  • 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 mundrameenaxi

  1. Try editing actionModel-navigation.xml. You can define here which roles should be able to see what menus.

     <context name="main_manage_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR>

    you can add your test condition if a perticular role should not see the users and roles menu.

    <option labelKey="menu.users" action="primaryNavModule.navigationOption" actionArgs="user"/>
                    <condition test="!banUserRole">
                      <option labelKey="menu.roles" action="primaryNavModule.navigationOption" actionArgs="role"/>
                    </condition>

    and then on applicationContext-security.xml you can add your role to whichever flow you want

     <bean id="flowVoter" class="com.jaspersoft.jasperserver.api.security.FlowRoleAccessVoter">
            <property name="flowAccessAttribute" value="FLOW_ACCESS"/>
            <property name="flowDefinitionSource">
                <value>
                    repoAdminFlow=ROLE_ADMINISTRATOR
                    userListFlow=ROLE_ADMINISTRATOR
                    roleListFlow=ROLE_ADMINISTRATOR
                    editFolderFlow=ROLE_ADMINISTRATOR
                    fileResourceFlow=ROLE_USER,ROLE_ADMINISTRATOR
                    listOfValuesFlow=ROLE_USER,ROLE_ADMINISTRATOR
                    reportDataSourceFlow=ROLE_USER,ROLE_ADMINISTRATOR
                    inputControlsFlow=ROLE_USER,ROLE_ADMINISTRATOR
                    tenantFlow=ROLE_ADMINISTRATOR
                    addDataSourceFlow=ROLE_ADMINISTRATOR,ROLE_NEWROLE
                    userEditFlow=ROLE_ADMINISTRATOR
                    roleEditFlow=ROLE_ADMINISTRATOR
                    queryReferenceFlow=ROLE_ADMINISTRATOR
                    searchFlow=ROLE_USER,ROLE_ADMINISTRATOR
                    docSampleFlow=ROLE_ADMINISTRATOR
                    *=ROLE_USER,ROLE_ADMINISTRATOR
                </value>
            </property>
        </bean>

  2. We recently faced OutOfMemoryError-java heap space issue and had to restart the server. When looking at log we found the attached error

     I assume the error was due to report couldn't be printed on preview section as it didnot find enough memory on system

    Need expert advise. please help. 

    We checked the hprof file and could lead to the issue as below

    One instance of "org.apache.jasper.runtime.BodyContentImpl" loaded by "java.net.URLClassLoader @ 0x734cd9588" occupies 570,425,408 (33.03%) bytes. The memory is accumulated in one instance of "char[]" loaded by "<system class loader>".

  3. Requirement: I need to find the difference between from date and to date entered by user. If the difference is greater than 15 days, an alert should be displayed to user. if it is less report should run. 

    This needs to be done on server level so that all the exisitng reports can be validated and not at individual report level. 

    TIA

    1. Stop the jasperserver tomcat services.

    2. Navigate to folder jasperreports-server-cp-6.4.0apache-tomcatwebappsjasperserverscriptsbower_componentsjquery-uiuii18n

    Open the date picker file for specific local for which week start has to be changed.

    Change the firstDay: 0 as per below screenshot(0 is Sunday, 1 is Monday and so on)

    jasperreports-server-cp-6.4.0apache-tomcatwebappsjasperserveroptimized-scriptsbower_componentsjquery-uiuii18n

    Open the respective datepicker file and change the firstDay: 0

    Start the jasperserver tomcat services

    The week start is now changed from Monday to Sunday

     

×
×
  • Create New...