# We have nodetypes inside document, now while updating i need to get those handy

**URL:** <https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 23, 2019, 9:51am UTC](https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511 "2019-10-23T09:51:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [October 23, 2019, 9:51am UTC](https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511/1 "2019-10-23T09:51:40Z")

</div>

Hi Guys,

We have nodetypes inside document, now while updating i need to get those handy…  
could you please help me out, i tired with getNodes(). But it doesn’t help

Please find the screen shot for the same.

thanks & regards  
Ganehs

 ![45%20PM](https://canada1.discourse-cdn.com/flex027/uploads/bloomreach1/original/1X/732b68823b7beefeceea1a0b32478746a964bb0b.png)

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [October 24, 2019, 12:55pm UTC](https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511/2 "2019-10-24T12:55:06Z")

</div>

That information is part of the type configuration and not part of any instance. This configuration can be found in the editor:templates.

```
/hippo:namespaces/{namespace}/{type}/editor:templates/_default_/{node}/cluster.options

```

What is it you are trying to achieve?

---

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [October 25, 2019, 9:39am UTC](https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511/3 "2019-10-25T09:39:53Z")

</div>

Hello Jasper.Floor,

thanks for your time and reply.

we have document (called A as example) which is having attribute Product, like above.  
which can take input as another document (called B as example).

if add the document B in document A, then A document id should get updated in B.

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [October 25, 2019, 10:14am UTC](https://community.bloomreach.com/t/we-have-nodetypes-inside-document-now-while-updating-i-need-to-get-those-handy/1511/4 "2019-10-25T10:14:12Z")

</div>

So you don’t need to know the nodetypes allowed on the type definition but the actual value of an instance. That should be possible.

Document A should have a subnode Product which has a property hippo:docbase. That is the property you are looking for. If you are working from a bean you should have a getter for the subnode, getProduct, or in your case more likely getproducts as it is a multiple (so you will get a List). From that bean you can get the property with bean.getSingleProperty(“hippo:docbase”).

In terms of nodes it will be similar. You’d do something like

```
node.getNode("myproject:Product").getProperty("hippo:docbase")

```

though again, you have a multiple, so you would use getNodes(“myproject:Product”), which returns an iterator.
