Changing Inventory component to crafting on function

So. I have an array of engramsEntries and I want to change their inventory componente crafting. I mean the structures where they can be crafted.
I have a function where I try to to it, but cant conect some nodes. Thanks in advanced.