Till version 5.4, NextReports was able to select static columns and legends. But there are situations when you want your chart to show all existing series from a specific business. For example to see the type count for some products, but you have a dynamic list of products: some products may be removed or some may be created in the future. And you do not want to change the chart anytime a change to that list of products is done.
To establish this:
- user must create the chart query in a dynamic mode (no hard-coding) with a simple sql query or with a procedure call (a procedure call may be more suitable in most of the cases)
- user will leave the Y column unselected in chart layout (also no legend has to be entered)
- user will enter an sql (simple query or procedure) inside a new property called "column query" which must return string pairs of {column name, column legend}
When the chart is run, the dynamic columns are computed and they are used as the series. In this way any new changes to our list of products will be automatically seen inside the chart.
This new feature will bring more flexibility to NextReports starting with 5.4 version.
No comments:
Post a Comment