# How to access a String Collection in Printable Documents editor?

**URL:** <https://community.criticalmanufacturing.com/t/how-to-access-a-string-collection-in-printable-documents-editor/676>\
**Category:** Extensibility\
**Tags:** v8.x, business-rules\
**Created:** [March 23, 2023, 6:26pm UTC](https://community.criticalmanufacturing.com/t/how-to-access-a-string-collection-in-printable-documents-editor/676 "2023-03-23T18:26:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaomarinho](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@joaomarinho](https://community.criticalmanufacturing.com/u/joaomarinho)\
**Post date:** [March 23, 2023, 6:26pm UTC](https://community.criticalmanufacturing.com/t/how-to-access-a-string-collection-in-printable-documents-editor/676/1 "2023-03-23T18:26:22Z")

</div>

Consider the following scenario:

We have a printable document applied to materials with a data context “Attributes” set as a Collection of Strings, which receives the output of the dee “testDee” through the rule “testRule”.

 ![](https://canada1.discourse-cdn.com/flex050/uploads/community_criticalmanufacturing/original/1X/1d1a5502b16ff19816ef8410ddcfa145db3338fb.png)

The Dee code is the following:

return new Dictionary\<String, Object\>()

{

{“Result”, new Collection() { “CustomerCode”, “ERProduct”, “SupplyChain”, “VendorPart” }}

};

Inside the editor we are not able to access the members of “Attributes” with array notation, like Attributes[0]. How can we access the individual members of the array inside the editor?

---

<div class="post-metadata">

**Author:** ![joaomarinho](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@joaomarinho](https://community.criticalmanufacturing.com/u/joaomarinho)\
**Post date:** [March 23, 2023, 6:28pm UTC](https://community.criticalmanufacturing.com/t/how-to-access-a-string-collection-in-printable-documents-editor/676/2 "2023-03-23T18:28:59Z")

</div>

We can access individual elements of a String collection by using the following notation:

{.DataTable.Rows[][“Data”]}

For example:  
{Attributes.DataTable.Rows[0][“Data”]}

 ![](https://canada1.discourse-cdn.com/flex050/uploads/community_criticalmanufacturing/original/1X/f9ad38c849bcda6c52512a0512f87bf0a000263a.png)  
 ![](https://canada1.discourse-cdn.com/flex050/uploads/community_criticalmanufacturing/original/1X/331b21faf277435b2bc2e70d2b68a2d94ab68e8c.png)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex050/user_avatar/community.criticalmanufacturing.com/system/32/23_2.png) [@system](https://community.criticalmanufacturing.com/u/system)\
**Post date:** [August 27, 2026, 5:27pm UTC](https://community.criticalmanufacturing.com/t/how-to-access-a-string-collection-in-printable-documents-editor/676/3 "2026-08-27T17:27:22Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
