This discussion is archived
2 Replies Latest reply: Sep 17, 2013 10:03 AM by user13295529 RSS

How to identify the Primary Parent of a Shared Node?

user13295529 Newbie
Currently Being Moderated

We have a Property that is set to Defined, Inherit, Local

Assume the Property is “Color” and currently this is the behavior in DRM

 

Parent A – Color Blue

                Child 1 – Color Blue (Inherited from Parent A)

                Child 2– Color Blue (Inherited from Parent A)

                Child 3– Color Blue (Inherited from Parent A)

 

Parent B – Color Red

                Child 3 ~Share 1 – Color Red (Inherited from Parent B)

                Child 4 –Color Red (Inherited from Parent B)

                Child 5–Color Red (Inherited from Parent B)

               

The Customer has enhanced the requirement so that in the case of Shared Members the “Color” is inherited from the Primary Parent as the example below.

 

Parent B – Color Red

Child 3~Share1 – Color Blue (Inherited from “Primary” Parent A)

Child 4 –Color Red (Inherited from Parent B)

Child 5–Color Red (Inherited from Parent B)

 

I assume that I will need a new property such as “Primary Color” and I need to write a formula to derive the color based on the primary parent.  However, I don’t know of a way to identify the “Primary Parent” of a Shared Node we are using version 11.1.1.2 N-Tier

 

I’m looking for suggestions as to how derive the desired property value.

Any help will be greatly appreciated.

  • 1. Re: How to identify the Primary Parent of a Shared Node?
    Denzz Explorer
    Currently Being Moderated

    Hello,

     

    You can create a new Derived Property as u said and use that instead of the Defined Property in your exports or wherever You will have to refer to the colour. The defined property can be used just to take user inputs.

     

    The new derived property should have a logic like this-

     

    If(PropValue(Core.SharedFlag_MDM),

    NodePropValue(PropValue(Core.PrimaryName_MDM),Custom.Colour),

    PropValue(Custom.Colour))

     

    Now, in 11.1.1.2  I have lost memory of how properties are referred to- if they are just used with their names or the namespaces is mentioned (Core. , Custom.). You can modify the formula accordingly to refer the properties

     

    So, if SharedFlag_MDM is True then it will take the property value of its Primary Node which is inherited from the Primary Parent and if the Shared Flag is False then its just a PropValue on the node itself.

     

    I hope this answers you.

     

    Thanks

    Denzz

  • 2. Re: How to identify the Primary Parent of a Shared Node?
    user13295529 Newbie
    Currently Being Moderated

    Denzz,

     

    Thanks for the response it worked and  for the 11.1.1.2 version it would be as fallows

    If(PropValue(SharedFlag_MDM),

    NodePropValue(PropValue(PrimaryName_MDM),Colour),

    PropValue(Colour))

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points