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

tsareg

Members
  • Posts

    8
  • 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 tsareg

  1. To add s submenu you will need to perform follwoing actions:
     
    1. Open <js-webapp>/WEB-INF/actionModel-navigation.xml.
    2. Find there such lines:
      <context name="main_view_mutton" test="!banUserRole"><selectAction labelKey="menu.repository">
    3. Replace there this line:
      <option labelKey="menu.all" action="primaryNavModule.navigationOption" actionArgs="browse"/>
      with
      <selectAction labelKey="menu.all"><option labelKey="my.custom.action" action="primaryNavModule.navigationOption" actionArgs="myCustomAction"></option></selectAction>
    4. Open <js-webapp>/scripts/actionModel.primaryNavigation.js.
    5. Find there object navigationPaths and add there new property for your custom action:
      myCustomAction : {url : "<YOUR_URL>", params : "<ADDITIONAL_URL_PARAMS>"}
    6. Open <js-webapp>/WEB_INF/bundles/jasperserver_messages.properties.
    7. Add there label for your menu item:
      my.custom.action=My Custom Action
    8. with 4. Open /scripts/actionModel.primaryNavigation.js. 5. Find there object navigationPaths and add there new property for your custom action: browse : {url : "", params : ""} 6. Open /WEB_INF/bundles/jasperserver_messages.properties. 7. Add there label for your menu item: my.custom.action=My Custom Action 8. Restart your web-server for changes to take an effect.Restart your web-server for changes to take an effect.
  2. How are your themes set up? Are they loaded from local file system or from database? If from database, you'll need to rebuild JRS for changes to take effect. To determine, from where your CSS comes, see WEB-INF/applicationContext-themes.xml file in your deployment. Here you can try switching between CSS from local file system and database by commenting/uncommenting some settings there (there is guide in the header of file).

×
×
  • Create New...