Force Views on List Layout through Modules

lenhun
Tera Contributor

I'm trying to force a custom list view using the view name field in Modules, however I'm finding that when switching between module links with different views they are being retained and not changed. The views have been set up correctly and I can switch between them through right-clicking the header. I have this exact set up with another table and the views change based on the link, so I'm not entirely sure why this is happening. Can anyone provide any assistance?

right-click.png

ALL COMPONENTS MODULE

all-comp-mod1.png

ALL COMPONENTS LIST VIEW

all-comp-list1.png

ALL TASKS MODULE

all-task-mod1.png

ALL TASKS LIST VIEW

all-task-list1.png

5 REPLIES 5

Community Alums
Not applicable

Leonard,



You're looking for View Rules. You can set those up by going to System UI > View Rules on the application menu.



Once there you can set up conditions to make certain views available or not available, as well as when they apply.



Link


Alikutty A
Tera Sage

Hi,



I had come across this issue once, seems like it wont change. Once you set a view, it is added under your user preferences. The next time you access the same table, the view is fetched from the user preference which was the previous one and i believe sysparm_view added in your second module is not respected.




Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response


See I thought this as well but I have this working with another set of links in the same module just on a different table. Not sure why it's not honouring view added through the module.


Have you tried changing the link type to URL from Arguments and update the arguments field. It works when we access the view or form from a URL.



/incident.do?sysparm_view=itil


/incident.do?sysparm_view=ess



Thanks


PS: Hit like, Helpful or Correct depending on the impact of the response