cancel
Showing results for 
Search instead for 
Did you mean: 

Setting multiple View state parameters at once

jlucid
Contributor

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

 

 

1 ACCEPTED SOLUTION

jlucid
Contributor

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

 

 

View solution in original post

1 REPLY 1

jlucid
Contributor

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