Display Modules based on Criteria

eswarijk
Tera Contributor

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..?

11 REPLIES 11

Harish KM
Kilo Patron
Kilo Patron

amlanpal
Kilo Sage

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



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)


Like this. --edit module--copy sys_id



find_real_file.png


Regards
Harish