How To Hide Popular Resources and Recently Viewed Items from Home Page of Jasper Server

Posted on by By Prashanth, in Jaspersoft | 0

Steps to hide the Popular resources and Recently viewed items in the Jasper server :

Open the file HomeView.js in the below path

C:\Jaspersoft\jasperreports-server-7.1.0\apache-tomcat\webapps\jasperserver-pro\scripts\home\view

1. To hide popular items, comment the below code in the HomeView.js file

this.popularLinksBlock = new ExpandableBlock({
                    title : i18n["popular.resources"],
                    stateKey: "homePagePopularLinksExpandableList",
                    $block: popularLinksView.$el
                    });
 this.$(".homeSidebar").append(this.popularLinksBlock.render().$el);

Screenshot :

2. To hide recent items ,comment the below code in the HomeView.js file

  this.recentItemsBlock = new ExpandableBlock({
                    title : i18n["recently.viewed.items"],
                    stateKey: "homePageRecentlyViewedResourcesExpandableList",
                    $block: recentItemsView.$el
                    });
 this.$(".homeSidebar-title").after(this.recentItemsBlock.render().$el);

Screenshot :

3. To change the order change the code as follows

Replace this code in the function : 
  render: function () {
            this.$el.append($(_.template(homeTemplate, this.model.toJSON())));
            this.$(".homeMain").append(this.workflowsView.$el);
            this.$(".homeSidebar-title").after(this.popularLinksBlock.render().$el);
            this.$(".homeSidebar").append(this.recentItemsBlock.render().$el);
            return this;
        }

Test Cases :
1. Screenshot before changing the order

2. Screenshot after changing the order



I hope it helps,
In case if you have any queries, please get us at support@helicaltech.com

Thanks,
Prashanth Kasoji
BI Developer
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments