locked
MDS Business Rule Question RRS feed

  • Question

  • Hi All,

    Consider an entity as follows:

    Code Name LegacyYN
    ABC 25% due 30 days N
    E 50% due 45 days Y
    FGH 100% due 30 days N
    AB12 25% due 30 days N
    ZZ 50% due 45 days Y

    I am trying to implement a business rule using the MDS UI, where I can check for the uniqueness of the "Name" attribute 
    but ONLY for members where the LegacyYN value = N


    Thanks for your help...

    K

    Thursday, August 1, 2013 9:27 PM

Answers

  • I think I can restate the rule as:

         If LegacyYN = N then Name must be Unique in combination with LegacyYN.

    Which can be directly implemented as an MDS business rule.  Here's what it looks like for

         If PostalCode = 75229 then Telephone must be unique in combination with PostalCode

    David


    David http://blogs.msdn.com/b/dbrowne/

    • Marked as answer by kgandhi Thursday, August 1, 2013 10:12 PM
    Thursday, August 1, 2013 9:54 PM

All replies

  • I think I can restate the rule as:

         If LegacyYN = N then Name must be Unique in combination with LegacyYN.

    Which can be directly implemented as an MDS business rule.  Here's what it looks like for

         If PostalCode = 75229 then Telephone must be unique in combination with PostalCode

    David


    David http://blogs.msdn.com/b/dbrowne/

    • Marked as answer by kgandhi Thursday, August 1, 2013 10:12 PM
    Thursday, August 1, 2013 9:54 PM
  • Brilliant!

    Thanks!

    • Marked as answer by kgandhi Thursday, August 1, 2013 10:11 PM
    • Unmarked as answer by kgandhi Thursday, August 1, 2013 10:12 PM
    Thursday, August 1, 2013 10:11 PM