Set a default View for all classes in the CMDB

utente
Giga Expert

Hi all,

I nees to set a default view in the forms, different to the original "default view" proposed OOTB form the system.

I have try to use the View Rule, but when one one of this is activated, the user can't change view..

 

My idea is to propose my default view at the user,

but don't block her to select another view.

 

 

I think is something like user preference, but I don't found how active this ..

Can someone help me ?

1 ACCEPTED SOLUTION

utente
Giga Expert

Hi,

I have found a solution:

Create a user preference (one for each table) that is composed in this mode:

DescriptionDefault cmdb_xxx view
Namecmdb_ci_xxx.view
SystemTRUE
User- empty -
TypeString
ValueView Name

With this approach:

  • The user will see like default the view indicate in the user preference.
  • The user is able to change the view and decide your prefer view.

By

Vincenzo

View solution in original post

6 REPLIES 6

Uncle Rob
Kilo Patron

Why can't you use default view?

utente
Giga Expert

I think was better for preserve the views to the future instance upgrade.

..but it is a my idea... do you think is better to modifiy the "default view" ?

 

Regards

Vincenzo

 

The stuff that adds risk to upgrades is when you alter the fundamental building blocks, or implement super exotic twists on their intended use.  The Default View is meant to provide *exactly* the function you're trying to achieve, so there's no problem in using that for its intended purpose.

If, at some future time, you want to revert back to the form default, the worst case is pulling up a fresh private dev instance and just re-altering the form.

 

utente
Giga Expert

Ok,
I'm partially agree with you.

My idea is not to write exotic code, but is to use the funtionality offered to the system.

Just for this I try to write here to know if is possibile to use the "User preference", for do it.

When a system receive an upgrade is possible that will be avaiable a new Deafult View, so if I have modify it, I need to chose if conserve my view of upgrade it and came back to the original one.
Instead if I have a new different view I can receive the upgrade of th origianl one, so I can conserve both and have less "warning" in the upgrade.

Regards

Vincenzo