1 Reply Latest reply: Dec 17, 2013 10:43 PM by Denzz RSS

    Writing a syntax for derived properties

    1013034

      I am trying to write a syntax to get the parent of a derived parent. I have written series for this but none worked can anyone please help

       

      If(Equals(boolean,PropValue(Custom.nodename),True),If(Equals(boolean,PropValue(Custom.NodeParent),True),PropValue(Abbrev),PropValue(Custom.NodeGrandParent)),)

       

      If(Equals(boolean,PropValue(NodeName),True),if(PropValue(Abbrev),ParentPropValue(NodeParent),ConcatWithDelimiter(_,True,PropValue,(Parent),PropValue(NodeGrandParent)))))



      P.S

      I am trying to get the Grand Parent


      Any idea will help.

        • 1. Re: Writing a syntax for derived properties
          Denzz

          Hi,

           

          Sorry but i didn't really get a hold of the custom properties that you've used... Going by the P.S that you need to get the grandparent..Here is something you can try

           

           

          If(GreaterThan(PropValue(Core.Level),2,Integer),NodePropValue(PropValue(Core.Parent),Core.Parent),DefaultValue)

           

          Now, for Nodes at level less than  2 you can choose whether to keep a DefaultValue or to just keep it blank.

           

          Let mek now if this makes sense.

           

          Thanks

          Denzz