Open

Domain (elements) Variant

  • 4 June 2019
  • 2 replies
  • 101 views

Userlevel 3
Badge +5
I'd like to be able to make a Variant of a Domain with Elements.
Instead of making 'close to double' Domains I'd like to be able to do the next:

Domain:
  • "document_types"
Elements(just some examples):
  • 1- Purchase Order
  • 2- Sales Order
  • 3- Invoice
  • 4- Picture
  • 5- Kick off Document
  • 6- Financial Summary
So the case would be:
I have a Documents table with a column "document_types" with this domain.
As example there will be 2 views, where you can add Documents on different ways.
So view 1: I want to be able to add Purchase Orders, Sales orders and Financial Summaries
and in view 2: I want to be able to add Invoices, Pictures, Kick off Document and Financial Summaries.

To achieve this i would have to make 2 more domains for view 1 and 2 where I'll also have to make sure the database values are the same as in domain "document_types".
Right now it takes:
-1 Extra time
-2 The maintainability of these columns/domains are harder, because you need to make sure they are in-line with each other.

What do you guys think?

2 replies

Userlevel 6
Badge +6
This idea is closely related to the inactive domain elements idea; you basically want to disable domain elements for specific variants. I wonder how often this situation occurs in practice, so lets see how many votes it gets!
Userlevel 3
Badge +4
To achieve this i would have to make 2 more domains for view 1 and 2 where I'll also have to make sure the database values are the same as in domain "document_types".


With current options I would solve it with a (locked) prefilter per view, that says for each view the domain elements should be in either of the sets you mentioned from the one domain.

In my view that is little overhead compared to the solution you paint yourself. In daily usage I estimate the trouble comparable to maintaining the domain and two variants. Any opinions?

Reply