cancel
Showing results for 
Search instead for 
Did you mean: 

KX Capstone Project Question 1.5

mdraidz
New Contributor

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

mdraidz_0-1672198411824.png

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:

mdraidz_3-1672198838235.png

Error message :

mdraidz_2-1672198824439.png

Grateful for any clarifications!

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

Thanks again.

 

1 ACCEPTED SOLUTION

rocuinneagain
Valued Contributor
Valued Contributor

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

 

View solution in original post

2 REPLIES 2

rocuinneagain
Valued Contributor
Valued Contributor

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!