Issue
When adding custom menu items to JasperReports Server repository (following guidelines in JasperReports Server Ultimate Guide) you may encounter such error message:
Uncaught TypeError: Cannot call method 'each' of undefined
Resolution
You need to specify new Main menu with a name pattern as "main_yourItemName_mutton".
Also, yourItemName cannot include underscore. So this is what will work:
<context name="main_yourItemName_mutton" test="!banUserRole">
but with a different name pattern it'll throw an error, e.g.:
<context name="yourItemName_mutton" test="!banUserRole">
and with extra underscore it won't work as well:
<context name="main_yourItem_Name_mutton" test="!banUserRole">
Ref. Case #00026453 -- 13:15, 22 June 2012 (UTC)
Recommended Comments
There are no comments to display.