How can I have a Row Name drop down from a data table as a variable input on a blueprint function?
So imagine I have a function called 'AddItem'. In it, I get a data table row by Row Name. However, I'd like to extend the drop down list seen here to the 'Item' input on the function so that I can directly select a valid item in the Data Table without having to enter a name manually.
However, after hooking up the 'Row Name' to the 'Item' input, when the function is called, there is no drop down.
Ok, so I thought maybe I could resolve this issue by similar means found here in this similar question. Which does work on instances of an actor, but not for functions. I created the DataTableRowHandle and set that as an input, which did not work.
As you can see here after breaking the struct, and setting the Data Table as the correct Item, the drop down does still not appear.
How would I go about doing this? I really don't mind if I have to create a C++ BPFL or something similar to achieve this. It would be a huge time save in the end.
asked Nov 07 '18 at 05:51 PM in Blueprint Scripting
The row name is determined by the value in the first column of the table row. If you want it to be something other than numbers you can just make it so that other column is the first one on the left, but you better make sure all the values in it are unique among all rows.
answered Nov 07 '18 at 08:00 PM
In that case, i believe there is a node you can use from the data table which returns all the row names in an array. You can use That array to help populate other lists and set text labels on newly spawned widgets etc. Unfortunately I dont remember the exact name of the node. Probably GetTableRowNames or GetTableKeys or something like that.
answered Nov 07 '18 at 10:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here