cancel
Showing results for 
Search instead for 
Did you mean: 

only display select variables through the web browser

analyst_tech_jo
New Contributor
is there anyway we can only display select variables And tables and IQ process through the web browser and not all the variables?
3 REPLIES 3

mfbx9mk8
New Contributor
Can you clarify what you are looking for here?

Joshua_Shields_
New Contributor
In order to display your own choice of variables on the web browser you must edit the built in k function .z.ph.
In particular the part that reads $(."\\v"),."\\b"
This is where the code is for what gets displayed on the browser.
A simple change such to $(."\\f"),."\\b" would now return the functions and views instead of the variables and views. 

To change the k code we need to edit the .z.ph function in the .h namespace.

q)\d .h
q.h)k).z.ph:{ammended k function}

To select a sublist of variables, first define a new variable in .h namespace. We can do this from q)
q).h.pV:`a`b`c

Then you can sub this into your function
q)\d .h
q.h)k).z.ph:{... replace $(."\\v"),."\\b" with $pV}

You will now see on the browser a list the `a`b`c variables (provided they exist on your q session)

Thanks,

Josh

Thank you. This answers my question.