If you're connecting to the MDB, it might be easier to create a SQL View and then use that to create the domain, otherwise you need to set up all the Joins in Jaspersoft. Here is an example (sorry for the long reply).
Steps would be:
1. Create a SQL View that has the data you need. (I can send you an example if you need one, let me know)
2. Use the SQL View to create a domain.
The following url documents how to create a SQL datasource in CABI:
https://docops.ca.com/ca-service-management/17-0/en/integrating/cabi-jasperreports-server-r6-3-0-for-ca-service-management/configure-cabi-jasperreports-server-r6-3-0-for-ca-service-management#ConfigureCABIJasperReports®Serverr6.3.0forCAServiceManagement-Step1:DownloadandInstallCABIJasperReports®r6.3.0Server
Launch CABI: http://yourserver:port/jasperserver-pro/login.html
Login with: superuser/<password>
Select Create under Data Sources
Complete the fields as noted below.
For MS SQL Server, define the following datasource details: - JDBC Driver: MS SQL Server (tibcosoftware.jdbc.dqlserver.SQLServerDriver)
- Host (required): The hostname of your SQL Server where the MDB is located.
- Port (required): Define the SQL Server port number. Default value is 1433.
- Service (required): MDB
- URL (required): jdbc:tibcosoftware:SQLServer://<sql_server_hostname>:<port>;SID=MDB
Where, <sql_server_hostname> is the name of the SQL server where the MDB resides. - User Name: Provide a database user that has read access to the MDB database.
- Password: Enter the password for the MDB database user.
|
Test the connection, save the datasource, and give it a name.
3. Now create the domain
Select Create under Domains
Enter:
Name : CR_SQL_Domain
Description: SQL View Domain
Save Location: /organizations/servicemanagement/capability/domains
Select your data source
Select dbo, and OK
In the Data Source pane, scroll down to dbo_View_SDM_Tickets_JS
Select the Add button to bring it over to the right
(Optional Step) Select Calculated Fields tab
Enter:
Field Name: Ticket_Count
Type: Integer
Expression: count(dbo_View_ SDM_Tickets_JS.Ticket_Num)
Click Save Field
Select the Display tab, and add any or all fields to your Domain
Select OK
Select Submit
Now test your domain.