List View by role?

chazz1
Mega Contributor

It is possible to show a different view of a list based on a role? For instance in change management, you can look at all tickets. I would like to have different list layouts based on a user's role. so developers will see a different set of columns in the list view than, say, an itil user.

right now, i have two different applications of the same name "All" where one shows one view and the other shows the developer view. Can i just have one application and have it switch views based on a user's role?

5 REPLIES 5

Lam_Hoang
Kilo Expert

Please take a look at the Business Rule incident functions, there you will find incidentGetViewName()

Here is an example to show a view based on the role.
For the change module you need to create a new BR and create a new function called changeGetViewName(), for other table you can use tablenameGetViewName().


chazz1
Mega Contributor

I took a look though the business rules for incidents and there was no rule with the name containing "incidentGetViewName", i then went and looked through ALL the business rules for the system and none of them had the name or contained "incidentGetViewName".

When i look at business rules it appears those govern the view of the actual record. I want to change the list view that the 'all' application displays.


chazz1
Mega Contributor

i figured out where the function was that you gave as an example. I have implemented a Global function called changeGetViewName(). but now i am unsure how to use it. i tried putting the function call in the view box of the application form but it just literally translates it and does not call the function. i then tried using the function call in the arguments area and got the same results. how do i get the function to actually run?


abhijats
Tera Expert

Hi Chazz,

In Business rule, there is one named 'incident function'. Here you can find the script that can be used to change default view according to his role.

For more clarity check below link i also had similar query a few days before..

Assigning some view to user