How to add a Struct Array to Scroll Box

I have a scroll box for my inventory and added buttons (InventoryButton2 widget) with an image, a text description, and a quantity on. This part works:

77670-menu.jpg

The buttons are getting their info from an Inventory structure I made (InventoryButtonScruct) stored in the “InventoryMenu” widget. As a default I have the two buttons shown already added to the structure when the game starts.

What Does not work:
I am trying to add more items/buttons to the scroll box in-game. In my Shotgun Shell box blueprint I have Item info, which is an inventory struct that had an image, text, and quantity set. I am trying to add it to the scroll box when you use the use key.

Can anyone see what I am doing wrong?

Is this what you mean? This does not seem to work either. The problem I see with this is that it still needs to add it to the struct since that is the inventory.

Figured it out. I put the inventory struct in my game instance BP and just cast to it with the button information then it added perfectly! I left the rest of it the same so when you open the inventory it will for each loop the array and create all the buttons!