Shopping Widget

No, you must create a variable (input pin) for the Data Table in the item widget and pass it to the item widget. Then in the item widget you get the item description, icon, etc. from the table.

P.S. In the element widget, instead of two pins for the table and row name, it is worth creating one ItemID variable and passing it, without first splitting it into the table and row name.

Let me guess - you created it that:

When you create a reference variable, you are essentially just allocating space for data. Initially, it does not point to any object, which is what the error says.

In addition, if you hover over a pin, the tooltip indicates its type - Panel Widget.


This is a parent class for many widgets, including Vertical Box. So you can specify Vertical Box for the Clear Children function.
But the Add Child To Vertical Box function needs a reference to Vertical Box. So you need a reference to Vertical Box, or a child class of Vertical Box.
The “magic” of class inheritance only works one way.

You don’t need to create another variable, you need to take a reference to the Vertical Box that you created in the store widget.
When you create a widget design - variables are automatically created and initialized for its elements.

If there is no variable, then set the “If Variable” flag on the Vertical Box details panel:


Result:

1 Like