# Derived data of sub node

**URL:** <https://community.bloomreach.com/t/derived-data-of-sub-node/4320>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [March 12, 2024, 12:36pm UTC](https://community.bloomreach.com/t/derived-data-of-sub-node/4320 "2024-03-12T12:36:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Hu](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/andrea_hu/32/1553_2.png) [@Andrea\_Hu](https://community.bloomreach.com/u/Andrea_Hu)\
**Post date:** [March 12, 2024, 12:36pm UTC](https://community.bloomreach.com/t/derived-data-of-sub-node/4320/1 "2024-03-12T12:36:14Z")

</div>

Hi Bloomreach Community,

I wanted to add a derived data property to a compound that is inside a document (to be specific, it’s actually a list of compounds).  
Since it’s not possible to configure the derivatives directly on the compound because saving and editing the document doesn’t trigger the compound derivative, we tried configuring it on the parent document instead.  
Then we’ve realised that we can’t access the compound from the parent document because it’s not a property, but a sub node of the document and `jcr:primaryType: hipposys:relativepropertyreference` can’t access the compound node.

The question then is, is there a way to add a derived data property on a compound? Whether directly on the compound itself or via the parent document.

Any insight would be greatly appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![Lef\_Karamoulas](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/lef_karamoulas/32/82_2.png) [@Lef\_Karamoulas](https://community.bloomreach.com/u/Lef_Karamoulas)\
**Post date:** [March 12, 2024, 2:52pm UTC](https://community.bloomreach.com/t/derived-data-of-sub-node/4320/2 "2024-03-12T14:52:35Z")

</div>

Hello @Andrea_Hu ,  
a compound in JCR is just a child node with its own node type.  
I don’t see why you couldn’t target it with the `hipposys:nodetype` or access it via

```auto
/hippo:accessed:
        jcr:primaryType: hipposys:propertyreferences
        /message:
          jcr:primaryType: hipposys:resolvepropertyreference
          hipposys:relPath: child:node/child:prop 

```

Have you attempted what this [page](https://xmdocumentation.bloomreach.com/library/concepts/content-repository/derived-data.html) describes in the section “Deriving Data From Another Node”  
The example shows a hipposys:relPath going up to the parent node (…/hippo:name). Theoretically this should work with “child:node/child:prop”

Could you also share the configured content type structure and what exactly are you trying to achieve?

Kind regards
