Force a view on a List Report results

adilbelahbib
Kilo Expert

Hey,

I have a report on the cmdb_model table. The thing is, when clicking on a record from the results (List report), the record form is opened with 'Default' view while I want it to be

1 ACCEPTED SOLUTION

adilbelahbib
Kilo Expert
4 REPLIES 4

srinivasthelu
Tera Guru

I do not know if you can force a view from LIST Report. But, if you just use a basic list with a forced view, the forms that are being opened through that list will also have same view as the list.



Hope that make sense!!



Thanks


Srinivas


Thanks Srinivas for the answer.


In fact, I already have a module pointing on a "basic" list with the forced view, and there's no problem accessing the records from that list.


What I'm looking for here is assuring that also the reports will open the same view as the "basic list".


adilbelahbib
Kilo Expert

At the end, I used a Business Rule similar to this one: http://wiki.servicenow.com/index.php?title=Restrict_Form_Views_by_Role


Hi Adil Belahbib ,



Do you have that code which force view ?



Regards,


Sajan