Main configuration item field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 12:55 AM
Hi,
How to add the default filter conditions in cmdb_ci table?
If I open cmdb_ci.LIST -> then open with all cmdb list but I need to open like default like all>active=true. Please let me know how to do this.
Note: It is not a module hence I am facing the issue.
Thanks,
Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 01:15 AM
This will open the list of all records in the table, by default. The LIST only makes it a new window. You could use .filter or .FILTER so it will open without records and you can just add the condition your self (saves loading time), but there isn't a way to have .list only show the active ones. Workaround could be to create it into a module, so it shows up when you type it and you can click it to open the active ones.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 01:34 AM
Hi @Mark Manders ,
Yes, I am opening the list view like cmdb_ci.LIST but it will open with all records, My use case is If I open cmdb_ci.LIST then it will open default like all>class!=network.
Note: Without creating the module can we achieve this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 03:20 AM
No, this is not possible. Use .filter to open the table without records and apply your own filter, or create the module. The .list option just opens all records. It's not configurable to apply filters to it.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 01:21 AM
Hi @manju12
You are trying to open the table directly which is mainly for developer not for fulfillers. If you want to add a filter you must open a module not the table directly.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************