How i can override view rule?

robertklimczak
Kilo Contributor

Hello,

i have problem with my new module.

I try to open lists with a new view. I use "sysparm_view" in URL address. It's working good in incident list but not working in change request list, because have view rules.

How i can override view rule via url params or other way?

Thanks,

Robert

7 REPLIES 7

Ah, so it is a list that is being viewed...



Goto: "System UI"



Search for the views available in that list... Example: "portal" is one of the views on the "Change -> All" menu.


Once you have that open the "portal" view and remove the list in the bottom "change_request".



Capture.JPG


When i open list in my module:


Zrzut ekranu 2016-03-23 o 11.52.08.png


But when opening a record on this list, view has change:


Zrzut ekranu 2016-03-23 o 11.52.58.png


Link to record looks good, have sysparm_view, but still opens other view


Zrzut ekranu 2016-03-23 o 11.53.30.png


That little * up there tells me that it is being forced into "Emergency view" for the table not the list. You need to do the following and apply it to the change_request table.



Goto: View Rules


Click New and fill in the details. You should be all set then... Here is the pic with all the details. The name you can obviously make anything you like.



Capture.JPG



Hope this sorts it out for you!



EDIT: Also check through your view rules if there is something that maybe forces it to the emergency view. You can remove it.


Be sure to check that it applies to the change_request table.