I have module dimensioned by TRID(1-100), Business Type(Type 1, Type2, etc.) and Region(EMEA,APAC,NA,LATAM). This module is used to define rules for each business type and Region. For example:
So, these are the inputs/rules for each region . In this example For EMEA we have 3 rules Rule 1. Segment = A Partner = C
Rule 2. Product = B
Rule 3. Product = X Partner = Y Attribute 1 = Z.
Now the requirement is if user tries to input similar rules for another region (APAC/NA/LATAM) it should show me an error of "Duplicate Rule".
Initially I thought of concatenate the inputs and create a list and then apply a finditem
on the concatenation of the inputs to check its already present or not but for
that it seems we have to create a action button which needs to be run after every rule is entered which will be a long process for the user.
So any better solution is appreciated.
Thank you,
Arnab