KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums KX Solutions Setting multiple View state parameters at once

  • Setting multiple View state parameters at once

    Posted by jlucid on September 22, 2023 at 12:00 am

    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

     

     

    jlucid replied 2 months ago 1 Member · 1 Reply
  • 1 Reply
  • jlucid

    Member
    September 22, 2023 at 12:00 am

    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

     

     

Log in to reply.