Jump to content
  • Opt scriptlet method callBeforeFillGroupFooters(boolean)


    tcloonan
    Assigned User teodord
    CategoryBug report
    PriorityLow
    ReproducibilityAlways
    ResolutionFixed
    SeverityTrivial
    StatusClosed

    Issue moved from:

    https://sourceforge.net/tracker/index.php?func=detail&aid=765405&group_id=36382&atid=416705

     

    Consult original issue for any attachments.

     

    [ 765405 ] Opt scriptlet method callBeforeFillGroupFooters(boolean)

     

    Submitted By: Jason Essington - essington

    Date Submitted: 2003-07-03 08:29

    Last Updated By: essington - Attachment added

    Date Last Updated: 2003-07-03 08:29

    Number of Comments: 0

    Number of Attachments: 1

     

    Assigned To: Nobody/Anonymous

    Priority: 5

     

    Summary:

    Opt scriptlet method callBeforeFillGroupFooters(boolean)

     

    I have discovered that I need a little more control over when to display group footers than is allowed with simple printWhenExpressions, and scriptlets do not currently have a method that gives the necessary field information. I need to know the field values as they are when calculator.estimatGroupRuptures() is called to know which group footers need to be suppressed.

     

    Since no scriptlet method is called just after dataSource.next() and before fillGroupFooters(boolean isFillAll), there is currently no way to set my variables based upon all the information available to fillGroupFooters.

     

    I would like an optional (so as not to break current scriptlets) scriptlet method

    callBeforeFillGroupFooters(boolean isFillAll).

     

    The patch supplied places a call the the registered scriptlet like so:

     

    scriptlet.getClass().getDeclaredMethod("callBeforeFillGroupF

    ooters", new Class[] { Boolean.TYPE }).invoke(scriptlet, new

    Object[] { Boolean.valueOf(isFillAll) });

     

    It ignores any exceptions generated by the reflection, while propagating JRExceptions generated by a successful call to the scriptlet.

     

    By using reflection to call this optional scriptlet method, compatibility is maintained with current scriptlets while adding some missing functionality in the current scriptlet model.

     

    No follow-up comments have been posted.

     

    Attached Files:

    Name

    JRVerticalFiller.diff Patch for JRVerticalFiller


    Attachments: JRVerticalFiller.diff

    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...