# Report Scripting: Accessing Nested Query with Nested Query

**URL:** <https://forum.inductiveautomation.com/t/report-scripting-accessing-nested-query-with-nested-query/33211>\
**Category:** Ignition\
**Created:** [March 18, 2020, 3:31pm UTC](https://forum.inductiveautomation.com/t/report-scripting-accessing-nested-query-with-nested-query/33211 "2020-03-18T15:31:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 18, 2020, 3:49pm UTC](https://forum.inductiveautomation.com/t/report-scripting-accessing-nested-query-with-nested-query/33211/2 "2020-03-18T15:49:25Z")

</div>

If you are _ **accessing** _ nested data, look at the docs:

[https://docs.inductiveautomation.com/display/DOC80/Scripting+Data+Source#ScriptingDataSource-NestedQueries](https://docs.inductiveautomation.com/display/DOC80/Scripting+Data+Source#ScriptingDataSource-NestedQueries)

If you want to _ **construct** _ nested data, look at this topic:

> [@Report with Scripted Nested Data](http://forum.inductiveautomation.com/t/report-with-scripted-nested-data/11801/2):
>
> So, I figured this out on my own with a lot of help from inspect.py, which showed me this: Java Type: \<type 'com.inductiveautomation.reporting.common.api.QueryResults'\> M: \<type 'void'\> addNestedQueryResults(\<type 'java.lang.String'\>,\<type '[Lcom.inductiveautomation.reporting.common.api.QueryResults;'\>) M: getCoreResults() returns \<type 'com.inductiveautomation.ignition.common.Dataset'\> M: \<type 'java.util.TreeMap'\> getNestedQueryResults() M: \<type 'java.lang.Object'\> get(\<type 'i…

---

_[View the full topic](https://forum.inductiveautomation.com/t/report-scripting-accessing-nested-query-with-nested-query/33211)._
