How to set the value of inventoryReference variable

In my EquipmentSlot widget, whenever I click the button I want It to be empty and the item will move back to the inventory. But my problem is, I don’t know where to call the Init custom event to set the value of InventoryReference.