KX Community

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

Home Forums KX Academy Capstone Fundamental Ex 1.5

  • Capstone Fundamental Ex 1.5

    Posted by pravigak on October 11, 2023 at 12:00 am

    refServiceHandle: hopen `::5010
    **1.5 Using the handle `refServiceHandle` and the `uniqueOpts` variable we created before, call the
    `getOptionRef` API and retrieve the associated Options Reference data. Store the returned table
    in a variable `optRef`.**

    optRef: refServiceHandle(`getOptionRef;uniqueOpts)

    Using this line of code is not working. IPC says blocked. How do I fix it?

    pravigak replied 8 months, 3 weeks ago 2 Members · 2 Replies
  • 2 Replies
  • megan_mcp

    Administrator
    October 11, 2023 at 12:00 am

     

    I notice for your uniqueOpts variable you’ve declared it as:

    uniqueOpts: enlist (select distinct option_id from trade)

    Tables are created out of lists, so by enlisting the option_id column you are creating a list of a list.

    Since we already have our list, we just want to convert this into a list format. To do this you can use the exec  keyword.

    Once you’ve edited this, it should work fine.

    Thanks,

    Megan

  • pravigak

    Member
    October 11, 2023 at 12:00 am

    Thanks Megan! It’s working for me now!

Log in to reply.