Jump to content
  • Cannot re-order Input Controls for JasperReports repository reports


    gduprey
    Assigned User chicuslavic
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityCritical
    StatusResolved
    Versionv5.2

    It appears that once an input control is attached to a report in the JasperReports server view of the Jaspersoft Studio, you cannot re-order the input controls.

     

    Input control order is very significant to end users. As reports evolve in response to end-user requests, additional input controls are often added and the order of them is often not correct (newly added input controls are listed "at the end" and sometimes need to be higher up to make sense to where the end user expects them to be).

     

    The only way we can see to do this via Jaspersoft Studio is to delete all the existing input controls that come after the position where a new control needs to be added, then add the new control and then re-add the controls that come after. For pre-defined controls that are merely linked to the report, this is a pain. For custom controls, which involve embedded queries and formatting, it's incredibly error prone, tedious, and time-consuming.

     

     



    User Feedback

    Recommended Comments



    Changed Resolution from Fixed to Open

    Changed Status from Resolved to Feedback Requested


    What was the fix for this? Is there any documentation on how we can re-order input controls?
    Link to comment
    Share on other sites

    Changed Severity from Minor to Major

    Changed Resolution from Fixed to Open

    Changed Status from Resolved to Feedback Requested


    Still not fixed. Jaspersoft Studio on OS X also crashes every 2nd or 3rd time you try and re-order the input controls by trying to 'drag and drop' in the resource tree and even when it doesn't crash and actually let's me 'reorder' them it chooses its own order. It's such a pain in the ass.I'm using Mavericks and I was on Jaspersoft 5.5.1 and updated to Jaspersoft 5.6 - the only difference seems to be that 5.6 likes to sort the input controls in alphabetical order.
    Link to comment
    Share on other sites

    Changed Priority from Normal to High

    Changed Severity from Major to Critical


    I will be submitting a separate bug report, as advised by Michael Bielkiewicz, the Jaspersoft tech who worked with me at Haverford College to migrate our reports from the Community Edition of Jaspersoft to the Commercial edition, but wanted to add a note here, since it seems like my bug may be related.I'm on Mac OS X 10.9.4, running Jaspersoft Studio 5.5.1.final, and when I make any change to an existing report, and then publish the report to our server, the order of the Input Controls is reversed. In order to get them in the order I want, I then have to log into the web interface of JasperReports Server, delete the Input Controls, then re-add them in the desired order. The next time I make a change to the report in Studio and publish to Reports Server, the order will be reversed, again, necessitating the same deleting and re-adding.This is a major inconvenience, and clearly not the way the software should work.
    Link to comment
    Share on other sites

    how can an issue in "JasperReports repository reports" being fixed in JSS?

    I still can't reorder my input controls on a professional version of jasper server 6.1.

     

    Link to comment
    Share on other sites

    Changed Resolution from Open to Fixed


    I just retested on the last JSS, reording input controls from JSS works fineplease add more details, to reproduce the problem
    Link to comment
    Share on other sites

    Changed Resolution from Fixed to Open

    Changed Status from Resolved to New


    In Jaspersoft Studio 6.3, there is no way to reorder the input controls for a report (once the report has been exported from Studio). They can NOT be dragged and dropped. The only way to re-order them in Studio, is to delete them and then reimport them.
    Link to comment
    Share on other sites

    In the attached screen capture of Jaspersoft Studio Input Controls (of a specific report), the "seq" input control can not be reordered to be listed before the "trans_id" input control.
    Link to comment
    Share on other sites

    This is a bug from a long time ago.

     

    In Jaspersoft Studio 6.3. works but just initiated. If you work for a while, soon you'll see that not work.

     

    There isn't errors on the screen neither in the JSS's logs.

     

    Always I have to reorder input controls the only way is closing and reopening JSS and do this first than anything.

     

    I fill a bug report a long time ago but still remains the same.

     

    Cheers,

     

    Mariano

    Link to comment
    Share on other sites

    Hi,

     

    I have also been struggling with this for quite some time. I couldn't find the drag and drop functionality that others spoke of anywhere.

     

    Recently, I found out that if you view it through the Jaspersoft reports Repository, you can reorder the Input Controls from there by just dragging and dropping. You just need to remember to "Save" the report after reordering. See attached PDF file.

     

    I am currently using Jasperserver Pro 5.6.1. This drag and drop reordering functionality doesn't work if viewing through Jaspersoft Studio and it also doesn't work if you go to the "Controls & Resources" page (when Editing the report). I'm not sure how it works with other versions or editions of Jaspersoft.

     

    Hope that helps.

    Link to comment
    Share on other sites

    I was able to reproduce it on the last JSS build 6.4 build 174 and last JRS 6.3.0.

     

    Steps to reproduce:

    1. Create a report with 3 parameters that will be prompted in preview: p1, p2,p3

    2. Set the order like described: p1,p2,p3

    3. Publish report to JRS

    4. Open report in JRS and verify order of Input Controls: order is correct - p1,p2,p3

     

    5. Change order of parameters in JSS to p3,p2,p1

    6. Publish report - overwrite parameters in publish wizard

    7. Open report in JRS and verify IC order

     

    Actual result: p1,p2,p3

     

    Expected result: p3,p2,p1

     

    Screencast: http://screencast.com/t/WUDwQ6q70V6

    Link to comment
    Share on other sites

    I haven't understood from the thread what is the expected result exactly.

     

    Do you want to:

    - change Parameters order in JSS and it should affect on Input Controls order in JRS? This: http://screencast.com/t/TSp61mMx

    Or

    - change Input Controls in Repository Explorer of JSS and it should affect on Input Controls order in JRS? This: http://screencast.com/t/tOuTyM3WUs0

     

    Can you clarify?

     

    Link to comment
    Share on other sites

    The results would be the ability to re-order the input controls to effect the displayed order of them when a user runs a report. Sometimes a report is created and later additional input controls are added and, from an end-users standpoint, should logically show before existing input controls (or requirements/specifications change amongst just the already existing input controls).

     

    Ideally, you'd be able to re-order them from JSS or JRS, but even if it was only limited to one of them, it would be a big plus. The current way of having to delete them all and add them back in is painful if you are linking pre-built input controls and down right error prone if you are having to create each one with all the appropriate queries, data types, labels, etc.

    Link to comment
    Share on other sites

    Actually, I restarted JaspersoftStudio and the drag+drop animation makes it look like it's trying to let me reorder the input controls... but unfortunately I get this on the drops:

     

    modification.not.allowed

    Malformed data

    1 error(s)

    ids.not.match

     

    at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleErrorDescriptor(RESTv2ExceptionHandler.java:122)

    at com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleException(RESTv2ExceptionHandler.java:78)

    at com.jaspersoft.studio.server.protocol.restv2.ARestV2ConnectionJersey.toObj(ARestV2ConnectionJersey.java:57)

    at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.reorderInputControls(RestV2ConnectionJersey.java:988)

    at com.jaspersoft.studio.server.protocol.ProxyConnection.reorderInputControls(ProxyConnection.java:520)

    at com.jaspersoft.studio.server.dnd.InputControlDropTargetListener.doRun(InputControlDropTargetListener.java:123)

    at com.jaspersoft.studio.server.dnd.InputControlDropTargetListener$1.run(InputControlDropTargetListener.java:75)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

     

    The shortest stack trace I've ever seen from jaspersoft.

    Link to comment
    Share on other sites

    I am now able to drag+drop to reorder input controls and I may have figured out what was causing that stack trace... I had a bunch of input controls and input control references with id naming collisions. I got rid of all the input controls and kept just the input control references and now reordering is working.

     

    Still using Jaspersoft Studio 6.3.1.final on Mac

    Link to comment
    Share on other sites

    id collisions are considered inconsistent state on the server. You'll get exceptions on the server side. The only way is to cleanup input controls on the server, resolve this collisions.
    Link to comment
    Share on other sites




    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...