Tuesday, May 29, 2012

NextReports Server : Drill down with ease

NextReports Server allows to link an infinite number of drill-down widgets.

Version 5.2 of NextReports Server has a new "Up to Root" link which will make it easier to return to the first entity from wherever the user is inside the drill flow:

Tuesday, May 15, 2012

Wicket : Change an AjaxSelfUpdatingTimerBehavior

NextReports Server supports an automatic refresh for widgets. Just clicking "Edit Settings" for one widget will bring the following dialog:

Here user can modify "Refresh Time" which tells how many seconds should pass till next auto refresh.

To make this happen , an AjaxSelfUpdatingTimerBehavior is used. By default there is no refresh time set (value is 0). A change will imply to stop previous  AjaxSelfUpdatingTimerBehavior and to create a new one if that's the case:
for (Behavior behavior : widgetPanel.getBehaviors()) {
   if (behavior instanceof AjaxSelfUpdatingTimerBehavior) {
       ((AjaxSelfUpdatingTimerBehavior) behavior).stop();                    
if (refreshTime > 0) {
   widgetPanel.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(refreshTime)));
There are two things to have in mind:
  1. AjaxSelfUpdatingTimerBehavior must not be removed because, after stop, the event is called one more time on the client, so it has to be present.
  2. When we already have a refresh time set (greater than 0) and we want to modify its value, if a refresh is done when the dialog is opened, the desired panel no longer exists. So the user will be informed about this through a message (otherwise an error would have been raised):

Wednesday, May 09, 2012

NextReports : Templates for Parameters' Values

When we define parameters in NextReports Designer we can select default values for parameters. These values will be automatically selected in user interface when user runs the report.

There are some special cases of reports with a lot of parameters, when the user  may want to have more than a group of default values. To allow such functionality, version 5.2 of NextReports Server will bring a new feature :  Templates for Parameters' Values.

Basically, inside the runtime parameters panel, user will be able to save a template of values or to select a previously saved template to automatically load all values.

To save a template, user has to check "Save as" option and to enter a name for the template. Advancing to next step or just finishing will save the values template inside repository. On other runs for same report, user will be able to select the template.

Templates can also be removed by selecting them from a list.

So, in case you have reports with many (dependent) parameters and you need the way to run more variants without a lot of selecting , start using values templates.