Filter Data on SQL Widgets other options
Are we limited to just this option or can we create more?
Best Answers
-
Brett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭At the moment you are limited to just this one and this one is only available on work items.
In future versions we will hopefully add more.
If there is one in particular that you would like I encourage you to create a feature request and get it voted up.5 -
Brett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭I've raised this as a feature request....
https://community.cireson.com/discussion/2168/other-options-for-filtering-data-on-sql-widgets/p1
Vote it up and it just might happen5 -
Geoff_Ross Cireson Consultant O.G.Hi @Roland_Kind
This is possible since v8 of the Cireson Portal.
Use a token in your SQL Query with {{token}} and then provide the value to the token by the name name (AND CASE) in the request.
So, if your Query isSELECT * FROM WorkItem WHERE Priority = {{priority}}
then you can use$.getJSON('/api/v3/Dashboard/GetDashboardDataById', { "dateFilterType": "NoFilter", "queryId": "1FE7DECA-XXXX-YYYY-ZZZZ-1F7EF7604D62" "priority": 1 },
to return all P1 IRs.
You can use multiple tokens or even the same token more than once.SELECT * FROM WorkItem WHERE Priority = {{priority}} AND ( AssignedUser like '%{{Assigned}}%' OR AffectedUser like '%{{Assigned}}%' )
Good luck, happy interfacing!
Geoff7
Answers
In future versions we will hopefully add more.
If there is one in particular that you would like I encourage you to create a feature request and get it voted up.
support group
resolution category
classification
priority
impact
to just run off a few
https://community.cireson.com/discussion/2168/other-options-for-filtering-data-on-sql-widgets/p1
Vote it up and it just might happen
$.getJSON('/api/v3/Dashboard/GetDashboardDataById',
{
"dateFilterType": "NoFilter",
"queryId": "1FE7DECA-XXXX-YYYY-ZZZZ-1F7EF7604D62"
"customerVariables": { list of varname: varvalue}
},
or
Changing the "/Dashboard/GetDashboardQueryData" API call from "get" to "post" allowing that a comprehensive SQL query can be submitted - in this case you can define whatever variable you need
This is possible since v8 of the Cireson Portal.
Use a token in your SQL Query with {{token}} and then provide the value to the token by the name name (AND CASE) in the request.
So, if your Query is
then you can use
to return all P1 IRs.
You can use multiple tokens or even the same token more than once.
Good luck, happy interfacing!
Geoff
I love the Idea, but am new an not familiar on where exactly to put the javascript. Can you explain that part a little more in detail?
Thank you in advance.
Zack