Jump to content
We've recently updated our Privacy Statement, available here ×
  • Support HTML Tags in Ad Hoc Report Missed Items Message


    asimkin
    • Features: Ad Hoc Version: v7.1 Product: JasperReports® Server

    Issue Description

    Customer created an Ad Hoc Report from Ad Hoc View based on a domain

    Later, the domain structure was modified and some items removed.
    Now, if end-user opens the report, he gets message:

    "The report contains one or more items that are not in the source data.You must edit the Ad Hoc View that was used to create this report, and re-save the report."

    Customer customized the message as described in article

    https://community.jaspersoft.com/wiki/customizing-ad-hoc-report-missed-items-message

    But as it turned out, HTML style tags like font color, bold etc are not supported.

    Customer would like to use HTML style tags in the message

    [toc]

    Resolution

    TIBCO JasperReports® Server uses a special template to process Ad hoc Reports with missed itesm:

    Public > Templates > Error Report (ds_error_report.jrxml filename)

    The template contains a TextField element to display a message.

    In order to process HTML tags, the element's Markup property should be set to html:

    markup_property.png.69aef5cf64094a19e76ef3f87cd5528b.png

    Please refer to printscreen with enabled HTML tags:

    enabled_html_tags.png.649d7adc51c317dd9a1b625c805de864.png

     


    Solution tested with TIBCO JasperReports® Server v.7.1.0


    User Feedback

    Recommended Comments

    There are no comments to display.



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