add costum menu to jasperserver community

i want add a costum menu to jasperserver community edition , i added this to actionModel-navigation.xml

 

<context name="main_custom_mutton" test="!banUserRole">
<selectAction labelKey="NAV_801_ACCOUNTS">
  <option labelKey="NAV_802_SEARCH_IN"
          action="primaryNavModule.navigationOption"
          actionArgs="accounts"/>
  <option labelKey="NAV_803_SEARCH_OUT"
          action="externalSearchHandler"
          actionArgs="extsearch"/>
</selectAction>

and i added this to actionModel.primaryNavigation.js

accounts : {url : "home.html"},
extsearch :{url : "home.html"}...
accounts : {url : "home.html"}, extsearch :{url : "home.html"}...

after restarting tomcat , i see that my menu is added successfully , but wheni click on links there is no effect , i can't navigate to home page.

what can be wrong ?

anass.oasis's picture
Joined: Jul 20 2015 - 3:38am
Last seen: 8 years 2 months ago

I am also facing the same problem. Menu item is visible but no action when I click. How did you fix this ?

 

ravishankar03077 - 7 years 11 months ago

2 Answers:

You also need to add something to <js-webapp>/WEB-INF/bundles/jasperserver_messages.properties

see this link for more information:

http://community.jaspersoft.com/documentation/tibco-jasperreports-server...

 

elizam's picture
15652
Joined: Mar 5 2012 - 9:19am
Last seen: 3 years 2 months ago

i have already added messages for all labelKey to <js-webapp>/WEB-INF/bundles/jasperserver_messages.properties
my problem is actionArgs , when i click on "accounts" or "extsearch" it has no effect , i can't switch the the URL in actionModel-navigation.xml
 

anass.oasis's picture
Joined: Jul 20 2015 - 3:38am
Last seen: 8 years 2 months ago
Feedback