# Setting multiple View state parameters at once

**URL:** <https://forum.kx.com/t/setting-multiple-view-state-parameters-at-once/13640>\
**Category:** Community Support\
**Tags:** imported, other\
**Created:** [September 22, 2023, 12:00am UTC](https://forum.kx.com/t/setting-multiple-view-state-parameters-at-once/13640 "2023-09-22T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerlucid](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jerlucid](https://forum.kx.com/u/jerlucid)\
**Post date:** [September 22, 2023, 12:00am UTC](https://forum.kx.com/t/setting-multiple-view-state-parameters-at-once/13640/1 "2023-09-22T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/setting-multiple-view-state-parameters-at-once](https://learninghub.kx.com/forums/topic/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

&nbsp;

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

Thanks

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![jerlucid](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jerlucid](https://forum.kx.com/u/jerlucid)\
**Post date:** [September 22, 2023, 12:00am UTC](https://forum.kx.com/t/setting-multiple-view-state-parameters-at-once/13640/2 "2023-09-22T00:00:00Z")

</div>

After a bit more digging I realised I can do this easily using the Mapping option, [https://code.kx.com/dashboards/datasources/#mapping](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

&nbsp;

&nbsp;
