Skip to content

Customize CustomShowField

Patrick Tingen edited this page May 30, 2018 · 1 revision

This hook enables you to change the default visibility of a field. This can come in handy if you have some fields in your database that you never want to select, for example fields that have been added by your framework to all tables but which do not hold value for you. Note that this is just the default visibility. During run-time you can always change the visibility.

In our database, a lot of extra fields were added for those cases when we needed extra fields (database changes were not as cheap as today). But most of the times I don't want to see those fields in my databrowse. When I open DataDigger it looks like this:

Note my extra 'State__char' fields. If I wanted to disable them by default, my hook would look like this:

If I start DataDigger again, it now looks like this:

But off course, if you like, you can still enable them manually.