KX Capstone Project Question 1.5

Hey, I am having an issue with the Fundamentals Capstone course for question 1.5.

I passed a list to the ‘getOptionRef’ API but can’t get any outputs. If i specify a symbol from the option_id, it works.

Below is my code:

Error message :

Grateful for any clarifications!

Do drop me a private message if any of you would like to connect too.

Thanks again.

 

The syntax you need is:

refServiceHandle(`getOptionRef;uniqueOpts)

This will pass the local variable down to the remote function as a parameter.

 

I’ve added a pull request to have this documented better:

https://github.com/KxSystems/docs/pull/85

 

Q for Mortals has some notes already:

https://code.kx.com/q4m3/1_Q_Shock_and_Awe/#119-interprocess-communication-101

 

Understood. Thank you very much!