Setting multiple View state parameters at once

I have a data source which returns the simple table below, containing 3 columns and a single row

a b c

1 2 3

Whats the best way to assign the values 1,2, and 3 to separate viewstate parameters?

eg: view_state_param1 = 1, view_state_param2 = 2, view_state_param3 = 3

 

I need a method which scales well as the number of columns increases.

 Thanks

 

 

After a bit more digging I realised I can do this easily using the Mapping option, https://code.kx.com/dashboards/datasources/#mapping

I just changed the table structure to  have a sym column with values  a b and `c  and keyed it