Skip to Content
avatar image
Former Member

Create record with 1:N relationship based on condition

Hi SDNers,

Need your suggestions..

The below is the issue:

I have fields with values:

Field_A I Field_B

100 I P

100 I Q

100 I R

200 I X

200 I Y

200 I Z

If in Field_A I select the value 100 , for Field_B .. i shud have the option to select only P or Q or R .

Similarly, in Field_A if I select the value 200 , for Field_B .. i shud have the option to select only X or Y or Z .

I have already tried the below:

1. i have tried it with Nested lookup. The reason it does not work in this case is, we see it as a combination. For ex:

100;P

100;Q etc..

2. If i am using Field_A as Non-Qualifier and Field_B as Qualifier and imported the data. So, next time i create a record, selecting Field_A as 100 , in Field_B .. all the values are displayed.. i.e P,Q,R,X,Y,Z ... whereas we want only P, Q, R to be displayed.

Please suggest.

Thanks,

Priti

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 19, 2010 at 10:57 AM

    Hi,

    As per you requirement, it seems like a Field in main table is look up to Flat table which contains Two fields say Field A and Field B both as display fields. Field A has two values 100 and 200 only and Field B has six values P, Q, R, X, Y, Z.

    You want whenever you select Field A as 100 then only P, Q, R comes.

    I firmly believe that this is not achievable as per MDM capability using Fields. But you can run Validations to cross check that if it is 100 then correspondingly value of Field B should be from P, Q and R only. IIy, for 200 it should be from X, Y and Z.

    Alternatively, I can suggest you to go for Taxonomy. Create 2 categories say category name Field100 and Field200.

    Field100 category is linked with attribute 100 which has values P, Q and R.

    Field200 category is linked with attribute 200 which has values X, Y and Z.

    So whenever you select category Field100 associated linked attribute 100 will come and whose values can be populated using P, Q and R only.

    lly, when you select category Field200 associated linked attribute 200 will come and can be populated using X,Y and Z only. Whenever for a record in main table you select this category field as Field100 and Field200 correspondingly linked Attribute comes with Predefined set of legal values.

    Thanks and Regards,

    Mandeep Saini

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 06, 2010 at 11:23 AM

    Closing thread

    Add comment
    10|10000 characters needed characters exceeded