Self-defined dropdown selection

if I want to put a component to my report table ,which can self-defined some dropdown selections ,which component can I use ? And how to use it make these seil defined selections?

You can self define whats in the dropdown using the dataset viewer.

If you want to mix self defined with a query you could make a query that looks something like this:

select 'test' as displayname, 1001 as id
union all
select 'test2' as displayname, 1002 as id
union all
SELECT displayname, id 
FROM devices