Jump to content
Changes to the Jaspersoft community edition download ×
  • Creating a Domain


    Guest
    • Features: Domains Version: v4.0 Product: JasperReports® Server

    This functionality is no longer applicable to our latest version. Please refer to the "JasperReports® Server Data Management Using Domains" Guide for similar functionality on version 8.x

     

    1. On the Home page, click Create > Domain. You will be sent to the Add New Domain page:

      AddaNewDomain.png.3713b15f18b660f26cee6843abe2747b.png

      Here, you will set property values for the domain.

      Required Information

      A Name and Resource ID are required. When you enter a Name, the system will construct a Resource ID from it, which you can modify, if you care to.

      Enter a Description, if you care to.

      Choose where you would like to save this domain in the repository in the Save Location field You can use the Browse feature to do so.
       
    2. Data Source

      Click on Browse and select your data source in the Repository. For this guide, choose Foodmart Data Source , a provided sample data source in JasperReports Server. Click on OK.

    3. Domain Designer

      Click on Create with Domain Designer to create your domain design based on your data source.  If the link is not active, it means that you haven't chosen a Data Source as in the above step.

      Creating_domain_2.JPG.6b3fb179bc7964e602d6f972f8b6fed3.JPG

      Note: if you already have a domain design xml file, you can upload it.

    4. Tables

      Drag tables employee and store from the left panel and drop them on the right panel Selected Tables.

    5. Click on Joins tab.
    6. Joins

      On the Left table frame, select the store_id column of the employee table.

    7. On the Right table frame, select the store_id column of the store table.
    8. On the upper right corner, click on Join Inner icon to create your inner join between employee and store tables.

      Creating_domain_3.JPG.e32a8d2a4233034863fbd729e8ac02b9.JPG
    9. Click on Display tab.
       
    10. Display

      On the top, click on Add New Set icon. Select the new set and on your right, in Set Properties frame, fill out the following informations:

      IDemployee
      Labelemployee
      Description (optional)put a short description
      Creating_domain_5.JPG.e00a9eb2f1ff6b57831cdc8dc794548d.JPG

      Note: be carefull with ID property, this will be used in Domain Security File.

    11. Repeat the previous step for store set:

      IDstore
      Labelstore
      Description (optional)put a short description
      Creating_domain_6.JPG.7c3c5ef1c27f347550cc9978193af4a7.JPG

      Note: be carefull with ID property, this will be used in Domain Security File.

    12. On your left, in Join tree frame, drag the following columns and drop them into employee set:

      first_name, last_name, gender, marital_status, hire_date, position_title, salary.

    13. On your left, in Join tree frame, drag the following columns and drop them into store set:

      store_name, store_number, store_city, store_country.

      Creating_domain_7.JPG.c0400032ce2a3254d84f576457070cdd.JPG

    14. Click on Done to create your Domain Designer file.

      Creating_domain_8.JPG.20d471c0e45765fa23d809e550498906.JPG
    15. Save your domain

      Click on Save to finish your domain creation.

      Creating_domain_9.JPG.5a8184b78c41a8d49cfb090867e87539.JPG

     

    AddaNewDomain.png.2a3b605166886734f58ed292a4ed6a50.png


    User Feedback

    Recommended Comments



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