# 's UMG Tutorial: Create a Scrollable List of Buttons From a Dynamic Array

**URL:** <https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [September 19, 2014, 6:47am UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650 "2014-09-19T06:47:23Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![terrenzio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@terrenzio](https://forums.unrealengine.com/u/terrenzio)\
**Post date:** [July 22, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/21 "2015-07-22T14:41:26Z")

</div>

Hi ,  
Thank you to your guide but I have a problem. How can I work with these buttons now? How can I make them “interactible”?

Thank you so much

Lorenzo

---

<div class="post-metadata">

**Author:** ![storshun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@storshun](https://forums.unrealengine.com/u/storshun)\
**Post date:** [February 28, 2016, 1:46am UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/24 "2016-02-28T01:46:02Z")

</div>

I feel a little bad resurrecting a necro thread, but it’s such a good post, I don’t mind that much!

I’m trying to retrieve values in variables assigned to the dynamic objects (the buttons). However I can’t seem to properly reference back to my main blueprint (which is not my character BP). When I try to reference back to my “characterSheet” BP, the node asks me for another target (what the heck?!).

Humor me if you will:

1. I have an array of IDs ( **WPs** ) which I am parsing out any that repeat in a second array of IDs, just to ensure duplicating isn’t possible.  

2. After that I pass the ID(s) as a Name to a table look-up, create an instance of the widget button/text, assign an ID to that button, set the text value, and return to the rest of the loop  

3. The loop repeats after I assign the button as a child to a Vertical Box element in the main UMG BP.

4. I have verified everything works properly up to point, as I’m able to see the buttons and text populate the screen as I desired, and when I click one, I can “PrintString” to the screen and verify the ID is correct.  

So the question is: How do I get the value “ClickedButtonIDPublic” back to the “CharacterSheet” BP? I feel like is so stupidly obvious, but I’m hitting a brick wall.

---

<div class="post-metadata">

**Author:** ![storshun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@storshun](https://forums.unrealengine.com/u/storshun)\
**Post date:** [March 6, 2016, 6:31am UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/25 "2016-03-06T06:31:53Z")

</div>

Update: I got an answer to my question. I didn’t understand the proper application of event dispatchers. I do now. Yay.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e8383471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e8383471](https://forums.unrealengine.com/u/anonymous_user_6e8383471)\
**Post date:** [July 21, 2016, 10:26am UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/26 "2016-07-21T10:26:14Z")

</div>

Hello ! First thank you for tutorial, so helpful !

Forgive me if my question is stupid, but I am new to UE…

When creating addlistitem (checkboxes in my case) I need to add another data (visibility). I tried to nest a loop, create another function but nothing worked…

Where am I wrong ?

 ![56d6b76f8fd4b1bbe2dd18a028f369051d96a562.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/d/56d6b76f8fd4b1bbe2dd18a028f369051d96a562.jpeg) ![b17e2e6ca70382827057a267f187699fbf899f11.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/7/b17e2e6ca70382827057a267f187699fbf899f11.jpeg)

Thank you in advance !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e8383471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e8383471](https://forums.unrealengine.com/u/anonymous_user_6e8383471)\
**Post date:** [July 25, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/27 "2016-07-25T19:48:43Z")

</div>

OK someone told me how to do: use an array of a struct

 ![c5d4170b72bc70b6719d82f89ce1ce52d7680bd0.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/d/c5d4170b72bc70b6719d82f89ce1ce52d7680bd0.jpeg)  
 ![71d2c5a18cb419de21c1f7a45817999a8d0d486e.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/d/71d2c5a18cb419de21c1f7a45817999a8d0d486e.jpeg)

---

<div class="post-metadata">

**Author:** ![foxhound101](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@foxhound101](https://forums.unrealengine.com/u/foxhound101)\
**Post date:** [August 30, 2017, 8:57am UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/28 "2017-08-30T08:57:36Z")

</div>

I can’t believe … saves me once again. You are a legend !

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 16, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650/30 "2022-03-16T12:34:55Z")

</div>



[Previous page](https://forums.unrealengine.com/t/s-umg-tutorial-create-a-scrollable-list-of-buttons-from-a-dynamic-array/11650.md?page=1)
