Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I have a Row Name drop down from a data table as a variable input on a blueprint function?

Hi there.

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. alt text

However, after hooking up the 'Row Name' to the 'Item' input, when the function is called, there is no drop down. alt text

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.

alt text

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. alt text

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.

Product Version: UE 4.20
more ▼

asked Nov 07 '18 at 05:51 PM in Blueprint Scripting

avatar image

122 4 11 20

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Nov 07 '18 at 08:00 PM

avatar image

3.7k 18 19 20

avatar image LordMorin Nov 07 '18 at 10:11 PM

Sorry. Perhaps my question wasn't clear.

I understand what you're saying, but that's not what I'm looking for. I'm asking if I can have that drop down from the Data Table pushed outside the function. So that when I call the function from somewhere else, I can see the same drop down list I'd see when I'm inside the function.

(comments are locked)
10|2000 characters needed characters left

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.

more ▼

answered Nov 07 '18 at 10:53 PM

avatar image

3.7k 18 19 20

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question