antonc Posted January 24, 2014 Share Posted January 24, 2014 hi,how to add a menu under submenu ? for example under view->repositoryi,m using jasperserver 5 cethanks :) Link to comment Share on other sites More sharing options...
tsareg Posted January 24, 2014 Share Posted January 24, 2014 To add s submenu you will need to perform follwoing actions: Open <js-webapp>/WEB-INF/actionModel-navigation.xml.Find there such lines:<context name="main_view_mutton" test="!banUserRole"><selectAction labelKey="menu.repository">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>Open <js-webapp>/scripts/actionModel.primaryNavigation.js.Find there object navigationPaths and add there new property for your custom action:myCustomAction : {url : "<YOUR_URL>", params : "<ADDITIONAL_URL_PARAMS>"}Open <js-webapp>/WEB_INF/bundles/jasperserver_messages.properties.Add there label for your menu item:my.custom.action=My Custom Actionwith 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now