Book a Demo

Author Topic: Conditionally mandatory field  (Read 2326 times)

MaxS

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Conditionally mandatory field
« on: June 28, 2011, 01:09:24 am »
Hi there,

I was wondering how I would represent a conditionally mandatory field in a database that I am trying to set up. I have a field of various classes represented, of which one of them is "Other", I have another field which would need to be filled in only in the case that "Other" is selected as a class. How do I represent this in a model?

Thanks for any help,

Max

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Conditionally mandatory field
« Reply #1 on: June 28, 2011, 03:57:35 pm »
Max,

I would add a constraint to the attribute defining when en how the attribute is mandatory.

Geert