I have created basic dashboards and looks good till now.
Now I have added parameters for run time analysis. Here is what I did :
- Added simple parameter. name = “noofdays”
- Created a Select Component, daysselect. added to a panel.
- Create a value array. values are : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. corresponding arg is same for array values.
- created “sql over sqlJdbc” component. Added all required values. Creates a simple query.
- created a bar chart for the query in #4. Worked like a charm
-
Nof in “sql over sqlJdbc” component, used the parameter like below (“noofdays” is visible in parameters on the
SELECT `a1`,count(`a2`) FROM `app_crd` WHERE `a3`='RECV' and `a4`='CONDITION' and where DATE_SUB(CURDATE(),INTERVAL ${noofdays} DAY) <= `datecolumn` group by `a1`
When i check my logs, I see that ${noofdays} return null.
How do i get the correct value?
Thanks
Ajay
Specify the parameter “noofdays” in the parameter property of the select component “daysselect”, and also specify the parameter “noofdays” in the parameter property and in the listener property of the barchart.