I'm (ab)using elog as a database and would like to use conditional attributes, like:
Attributes = PC Name, Operating System, Version, Distribution
Options Operating System = Linux{1}, Windows{2}
{1} Show Attributes Edit = Operating System, Distribution, PC Name
{2} Show Attributes Edit = Operating System, PC Name, Version
Problem is that there are several conditions and the list of attributes is rather long. Also, since it's a
rather dynamic environment I have to make new attributes all the time, and adding them to all "show attributes"
lists is not only tedious, but bound to cause errors as well.
So...
I was thinking, would it be an idea to make the list of attributes to be shown or hidden on a per attribute base.
Like:
Attributes = PC Name, Operating System, Version, Distribution
# hide specific attributes
Hide attributes = Distribution, PC Name
# or configure which fields should be shown allways
Show Attributes = Operating System, Version
# add attributes based on OS
Options Operating System = Linux{1}, Windows{2}
{1} Show Attribute Edit = Distribution
{2} Show Attribute Edit = PC Name
(just thinking out loud here). |