I am trying to create a list from a single column of a table.
I have this
which works but I’m hoping there is a way to do this more directly. The doc I found
https://backendless.com/docs/codeless/codeless_data_api.html
doesn’t really go into details about how to use the different options on this block.
is there are more direct way I can accomplish this?
thanks,
H
You need to use the “properties” connector to specify the properties you want the server to return.
Hi, I tried that but may have not understood the right way
this seems to send back an array of "lable;‘value’ " pairs
How can I get just the values returned as a list?
H
ps: “label” and “table” are column names in my table
The “Load Table Objects” always returns an array of objects. The objects will contain the property (or properties) you request.
I believe what you want is the pluck operation :
1 Like
Did you try to remove Create object
block and just use the result of Get property "label"
block?
yes I tried just returning the results like so
and I got a blank list
I also tried pluck of collection but I may have not used it correctly
and got the same blank list as above.
ok I solved the problem.
the field name in the table was “label” the data grid column definition logic used field “Element”
when I changed “Element” to “label” everything showed up as expected.