How select a group of rows from datatable in ue4 with blueprints

I want to make a button which show certain players from database

For example I have a database with football players from different countries
I want to make a button that allow you to see only players from the team of italy
team

If the row names are ordered numbers:

But if you do not want to offend anybody, you’d probably want:


Other than that you’d need to look it up and filter, loop through the whole thing and compare results.

1 Like

thanks…but that is an array or the datatable named as “group”?

It’s an array of structs. We pick the ones from the DT that match the criteria and add them to an array. That’s what you asked for in the title.

I’d suggest you use an enumerator in the DT struct:

Makes life easier.

The enumerator and the struct could look like so:


Enumerators:

2 Likes

thnx, i will try