# Access peers properties of customRender

**URL:** <https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437>\
**Category:** General\
**Created:** [October 14, 2021, 11:52am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437 "2021-10-14T11:52:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ContrRus](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/contrrus/32/185_2.png) [@ContrRus](https://jsonforms.discourse.group/u/ContrRus)\
**Post date:** [October 14, 2021, 11:52am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/1 "2021-10-14T11:52:56Z")

</div>

Hi Everyone, I have such structure of my schema.  
So as you can see I have customRender widget-view-xxx, so how can I access other properties of gsm or type props, let’s say I need the value of gsm.collectionName or type.isPublic.  
Can I or can’t I do access them in my customrRender widget-view-xxx component?

 ![image](https://global.discourse-cdn.com/free1/uploads/jsonforms/original/1X/fc3b1a7afecbe9fe68151198989343c9b9746e08.png)

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [October 14, 2021, 12:19pm UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/2 "2021-10-14T12:19:39Z")

</div>

Hi @ContrRus, yes this is possible. See [this question](https://jsonforms.discourse.group/t/access-other-fields-value-data-in-custom-renderer/224) for more information.

---

<div class="post-metadata">

**Author:** ![ContrRus](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/contrrus/32/185_2.png) [@ContrRus](https://jsonforms.discourse.group/u/ContrRus)\
**Post date:** [October 15, 2021, 4:20am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/3 "2021-10-15T04:20:45Z")

</div>

Thank you for the answer, yeah I managed to get data with JsonFormsAngularService, but it gives whole data of the schema, but I need the data only where my customRender is so that I can use them in render itself.  
You see if I use the whole core.data I get also data where there are no my “widget-view-xxx”.  
Is it possible? Or perhaps should I elaborate on my question?

---

<div class="post-metadata">

**Author:** ![ContrRus](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/contrrus/32/185_2.png) [@ContrRus](https://jsonforms.discourse.group/u/ContrRus)\
**Post date:** [October 15, 2021, 4:46am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/4 "2021-10-15T04:46:01Z")

</div>

Or to be more precise, as you can see I have 2 properties with “widget-view-xxx”, **gsm** and **type**.  
So I need to use them separately. Shouldn’t they have all have their own kinda scope?  
I mean if **gsm** has the widget in its properties so the widget had access to only fields of gsm and not to properties of **type** but when it comes to property **type** it has its own scope with its own data

---

<div class="post-metadata">

**Author:** ![ContrRus](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/contrrus/32/185_2.png) [@ContrRus](https://jsonforms.discourse.group/u/ContrRus)\
**Post date:** [October 15, 2021, 6:04am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/5 "2021-10-15T06:04:48Z")

</div>

@sdirix I found a solution, so it appeared that if I access **this** in my customRender, it has **id** , llike this =\> “#/properties/gsm”. I just took gsm and search in the schema for this property.  
In any case, thank you for your help, I really appreciate it.

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [October 15, 2021, 6:10am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/6 "2021-10-15T06:10:09Z")

</div>

In the Angular custom renderer the scoped data should be available via `this.data`.

---

<div class="post-metadata">

**Author:** ![ContrRus](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/contrrus/32/185_2.png) [@ContrRus](https://jsonforms.discourse.group/u/ContrRus)\
**Post date:** [October 15, 2021, 6:12am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/7 "2021-10-15T06:12:13Z")

</div>

Yeah I thought so, but somehow there is nothing

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [October 19, 2021, 8:24am UTC](https://jsonforms.discourse.group/t/access-peers-properties-of-customrender/437/8 "2021-10-19T08:24:35Z")

</div>

If there is a bug which you can reproduce please open an issue on the [main repository](https://github.com/eclipsesource/jsonforms/issues/new/choose).
