# Inventory UMG issue

**URL:** <https://forums.unrealengine.com/t/inventory-umg-issue/2119741>\
**Category:** UI\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [November 13, 2024, 8:56am UTC](https://forums.unrealengine.com/t/inventory-umg-issue/2119741 "2024-11-13T08:56:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ybane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ybane/32/933134_2.png) [@ybane](https://forums.unrealengine.com/u/ybane)\
**Post date:** [November 13, 2024, 8:56am UTC](https://forums.unrealengine.com/t/inventory-umg-issue/2119741/1 "2024-11-13T08:56:52Z")

</div>

Hey all! I’m dealing with a problem in my inventory widget. I have the array with inventory items that holds **UObjects** with **RowName** and **Structure** (Quantity and other editable stuff).  
It all works great except my widget that displays items in array.  
Here is how items being added to the ListView.

 ![Adding items to ListView](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/0/ec0813ed10e6c4045febda4a51a6d0e68f4787e9.png)  
I believe it should work fine but here’s how it actually works:  

2 fixes I found but they don’t fix the whole problem.

1. First is to remove function that adds empty slots(it adds 20 empty items so ListView can show empty slots)
2. Second is to remove Regenerate All Entries node. Items add to ListView but when it’s about to change the quality of an existing item it does nothing.

---

<div class="post-metadata">

**Author:** ![ybane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ybane/32/933134_2.png) [@ybane](https://forums.unrealengine.com/u/ybane)\
**Post date:** [November 13, 2024, 9:07am UTC](https://forums.unrealengine.com/t/inventory-umg-issue/2119741/2 "2024-11-13T09:07:12Z")

</div>

Found an interesting thing  
This is how Widget gets empty slots

 ![Set Empty Slots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/2/732cea5fc9a67bc85df2d27640c48f5f6aaeff8e.png)  
And this is how entries set:  
 ![Set Entry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/6/1768380a1db8f7d2f3c05cddd8561d21cb8557cc.png)

If I add these 20 empty slots with an item that exists in DataTable then it works fine. So it works if I type an existing RowName in Construct BP Item Data node.

---

<div class="post-metadata">

**Author:** ![ybane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ybane/32/933134_2.png) [@ybane](https://forums.unrealengine.com/u/ybane)\
**Post date:** [November 13, 2024, 9:14am UTC](https://forums.unrealengine.com/t/inventory-umg-issue/2119741/3 "2024-11-13T09:14:10Z")

</div>

Found a solution in several minutes.  
Who dealing with the same issue - just hide all icons, text etc. that contains data about item if it’s an empty slot like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/3/793f2473aa0b07b54ba1c951e4553a6aa7d07989.png)  
If somebody knows a better way - please leave your option

_UPD: the topic looks like a schizophrenia_ 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 13, 2024, 9:14am UTC](https://forums.unrealengine.com/t/inventory-umg-issue/2119741/4 "2024-12-13T09:14:52Z")

</div>

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