Jump to content
We've recently updated our Privacy Statement, available here ×

sort parameter options in Report on Jasperserver


sjoerd.jump
Go to solution Solved by tmatveyeva,

Recommended Posts

Hi guys,

I have a report with 4 parameters, Year, Month, Min, Max
When i started out with the parameters only Month and Max were used. So i added Year and Min later.
All parameters are at the top of the page but there is no way to sort them.
Currently the order is [Month] [Max] [Min [Year] while a better order would be [Year] [Month] [Min] [Max].


Does anyone know how to sort the order of the Parameters?

Thanks!

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hello,

Unfortunalelly there is no possibitlity to change order of input controls for the report from UI at the moment. The only way to do so is to remove your controls and add then back in the correct order. 

However, such functionality is available in REST API. 

To change order using REST, first you need to get list of input controls by running GET request to [http://]{host}:{port}/{contextPath}/rest_v2/reports/{reportUnitURI}/inputControls URI and then PUT to the same URI, as a request body you should send list of input controls revieved from GET, but in correct order. Please note that currently it is impossible to change input controls except change of theirs order. Sent to server structure MUST be the same as it received from there, except order.

Sincerely,
Tatyana

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...