OPPID - How to create a new report using Crystal Reports


Applies To 
Product(s):OpenPlant PID V8i
Version(s):SELECTseries 3+
Environment: N/A
Area: N/A
Subarea: N/A
Original Author:Bentley Product Advantage Group

Creating a TTX file in Crystal Report

TTX file defines the fields. The names of these fields should be the same as of the names of the Properties that user wants to display in the report. The name of the TTX file should be the same as of the name of Class. One TTX file defines for one Class only. For example, If you want to show all the Equipments. One TTX file named EQUIPMENT.ttx should be defined. If you create TTX file named EQUIPMENT, then this template works for all the classes that are derived from EQUIPMENT like PUMP, VESSEL etc. But if you define PUMP.ttx, it will not work for EQUIPMENT class i.e. it supports the polymorphic behavior.
The table name (Or name of TTX file) should be the same 

 

Using Crystal Report template in OpenPlant PID

Creating template

Creating ECQuery for template

Creating Crystal Report template for Related Instances

Repeat the steps (3 - 10, select "Field Definitions Only" in Database Expert dialog - Press OK on Database Expert dialog.) mentioned in the above section "Creating a TTX file in Crystal Reports" and create TTX files for both main and related class. For example: If you want to show PipeLines and related PipeRun data, you have to create 2 connections (TTX files) for PIPING_NETWORK_SEGMENT and PIPING_NETWORK_SYSTEM.

Defining TTX and Linking Related Tables

Creating Group

Report is ready to be consumed from within OpenPlant PID

Comments or Corrections?

Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to the "Comments" area below. THANK YOU!