Hi,
Is there a way to reference a PocketQuery macro parameter in a template?
I have "hostname" param that is being passed to the SQL query:
select * from load_average where hostname=:hostname
can I reference the parameter in the template as well? Something like:
<script> var options = { title: $hostname, height: 300, width: 600, vAxis: { minValue: 0, maxValue: 1, format:'#%' }, hAxis: {slantedTextAngle:45}, legend: {position:'none'} }; PocketQuery.chart('LineChart', options); </script>
Thank you.
Hi Evgeny,
Yes you can! Try $queryParameters.hostname and it should work! Let me know if you need further help!
Regards, Felix
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.