Jump to content
We've recently updated our Privacy Statement, available here ×
  • Identify All Report Units Which Use a Repository Input Control


    asimkin
    • Features: Input Controls, Reports, Repository Version: v7.1 Product: JasperReports® Server

    The following SQL query will help user to identify all report units which have assigned an Input Control stored in TIBCO JasperReports® Server repository:

    SELECT 
        ic.name as InputControlName, rf.uri as ReportURI, rep.name as ReportName
    FROM 
        jireportunitinputcontrol ru,
        jiresource rep,
        jiresource ic,
        jiresourcefolder rf
    
    where
        ru.input_control_id = ic.id
        and ru.report_unit_id = rep.id
        and rep.parent_folder = rf.id
        and ic.resourceType = 'com.jaspersoft.jasperserver.api.metadata.common.domain.InputControl'
        and ic.name = 'test_ic' -- specify required input control name here
    

    This query can be used to assist in the effort to determine related reports if a user needs to delete an input control from the repository but the operation fails with message

    The selected items cannot be deleted because they are referenced by other objects.

    The query tested with TIBCO JasperReports® Server v.7.1.0 and PostgreSQL repository database


    Ref. Case 01656654


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