Main configuration item field

manju12
Tera Expert

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

9 REPLIES 9

Mark Manders
Tera Patron

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. 

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

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.

Dr Atul - LNG
Tera Patron

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.