Display Modules based on Criteria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 09:33 PM
I need to display modules based on Specific criteria such as if a username is present in certain table.
I saw the possibility of displaying modules based on roles.
Is it possible to display modules based on some conditions..?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 10:09 PM
Hi Eswari,
For your requirement please write on before Query Business rule on Module (sys_app_module) table as below:
Condition: !gs.hasRole('admin')
Script:
//This will hide the Module you want to hide for the rest apart from targeted users. This is the reverse approach.
if(Give your condition here)
{
current.addQuery('sys_id','!=','85591e0f4fdde6006292a90f0310c730'); //sys_id of the application/module
}
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:14 AM
Thanks.
But How to obtain the sys_id of modules at run time.?
How to uniquely identify a module.(two modules with same name is possible)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:17 AM