Hide some Dashboard in mobile application

Hi Community,

I have almost 10 plus dashboards in web application. Now in mobile I want only to show 3, how can I hide some of it? Is there a way I can filter it in Mobile Application Manifest?

 

Like 0

Like

3 comments

I think you can try the "Access Rights" option in dashboard and not give access to certain set of users who use the mobile app.

Thanks KrishnaPrasad,

On my scenario, access rights will not do. They should still need to see these dashboards in web application. I only need to limit the dashboards in mobile. Do you know if it can be achieve through filtration?

Dear Fulgen, 

 

There is no possibility to reach the functionality you have requested by applying changes to manifest only. 

You can do that overriding method onDashboardRecordsLoaded in Terrasoft.configuration.controller.DashboardPage (MobileDashboardPageController). 

An argument called "records" is passed into this method which contains all dashboards uploaded from DB. 

You can filter which of them to display in method onDashboardRecordsLoaded

Here is the short instructions on how to override an existing controller:

1. Create custom module which inherits the existing controller and add your own logic to it. Here is example for activity controller: https://prnt.sc/s8izs3

2. Create a custom module for replacing grid page for the created controller: https://prnt.sc/r0pz21

3. Create a Replacing client module for the existing manifest, copy the code from the base manifest, change the Grid property in the needed object and add the controller in the PageExtentions array: https://prnt.sc/r0q35h

4. Recycle pool and re-synchronize your mobile app.



Kind regards,

Roman

Show all comments