# Binding Array Struct on widget Table

**URL:** <https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803>\
**Category:** HMI & Visualization\
**Tags:** mapp-view\
**Created:** [November 6, 2024, 3:21pm UTC](https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803 "2024-11-06T15:21:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanzone](https://avatars.discourse-cdn.com/v4/letter/t/FF8800/32.png) [@Tanzone](https://community.br-automation.com/u/Tanzone)\
**Post date:** [November 6, 2024, 3:21pm UTC](https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803/1 "2024-11-06T15:21:17Z")

</div>

Hello everyone,

I’m looking for a faster and more efficient way to bind a structured array to a Table widget in Automation Studio 4.12. My table has seven columns:

- Index
- Name
- Real Value
- Software Value
- Inverse (toggle button)
- Delay
- BindingIndex

Currently, the only method I’ve found to bind my values to the table columns is by creating separate arrays for each attribute. However, this approach isn’t ideal.

To give more context, I’ve set up a custom management system for my digital inputs and outputs, which are displayed and can be modified from the HMI panel. Here’s a simplified overview:

1. My data is organized in an array of structures (`diPackaging`) that holds all necessary information for each I/O, including fields like `Idx`, `Name`, `Value`, `Inverse`, etc.
2. I would like to bind each field directly to the table columns, so that, for example, `diPackaging[i].Name` binds directly to the “Name” column, and `diPackaging[i].Value` binds to the “Software Value” column.

The issue I’m facing is that I can’t seem to bind the fields within `diPackaging` directly to table columns without creating supporting arrays for each field.

Is there any way in Automation Studio 4.12 to bind `diPackaging.Name` directly to the “Name” column, `diPackaging.Value` to the “Software Value” column, and so on, without creating additional arrays?

Thank you for any insights or suggestions!

 ![Struct](https://europe1.discourse-cdn.com/brcommunity/original/2X/c/cb0bf46266c492bcd95065ce4d313a72609e6b72.png)  
 ![Variable](https://europe1.discourse-cdn.com/brcommunity/original/2X/6/6d69ae584aaf81bf35c516e81e985ec520a70552.png)

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [November 7, 2024, 6:49am UTC](https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803/2 "2024-11-07T06:49:26Z")

</div>

Hi Manuel,

I created a support ticket regarding this issue in 2018.  
Unfortunately, there are no plans from B&R to create the possibility to bind structured arrays to table.

I solved it for me be copying values from PLC in own arrays per column. But if you have input columns, it’s not that easy.

I’m excited whether someone in the community has any better ideas. 🫠

---

<div class="post-metadata">

**Author:** ![Tanzone](https://avatars.discourse-cdn.com/v4/letter/t/FF8800/32.png) [@Tanzone](https://community.br-automation.com/u/Tanzone)\
**Post date:** [November 7, 2024, 7:32am UTC](https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803/3 "2024-11-07T07:32:57Z")

</div>

Hi, thanks for the reply!  
I figured the solution would be a bit of a “spaghetti programmer” approach with additional arrays.  
I’m facing a similar issue: I need to manage input columns like “Value,” “Inverse,” and “Delay.”

I tried creating dynamic arrays that point to the elements in the structure, but no luck… I’m getting compilation errors.  
The idea might be sound, but I’m not achieving the desired results.

At this point, I’m considering changing my approach unless someone has a miracle solution 🤯

---

<div class="post-metadata">

**Author:** ![Rens\_B](https://avatars.discourse-cdn.com/v4/letter/r/FF8800/32.png) [@Rens\_B](https://community.br-automation.com/u/Rens_B)\
**Post date:** [November 12, 2024, 7:01am UTC](https://community.br-automation.com/t/binding-array-struct-on-widget-table/4803/4 "2024-11-12T07:01:47Z")

</div>

Too bad that B&R does not seem to want to work on a solution. This would be so awesome and great if they make this possible. We use structes a lot.
