For job-enabled industry models, enhance the display model to style the features that have been created, modified, or deleted in a job.
To create a display model that tracks feature modification and deletion
The industry model must be job-enabled.
- In the Maintenance workspace, open an enterprise industry model project.
- Click Home tab Display panel.
- From the Display Model list, select Open Default Display Model.
- In the Generate Graphic - Default Display Model dialog box, select Enable Deleted Features To Be Displayed.
- In the Display Manager, style the layers, and save the display model.
- Click Home tab Display panel Generate Graphic.
The display model provides a text function TB_SQL for TB_JOB_OPERATION _ID. You use this text function to define Thematic Rules for the features that have been created, modified, or deleted in the current job.
To use TB_SQL to style new or modified features in a job
- In Display Manager, select the feature layer, such as Building (LM_BUILDING).
- Click Style.
- In the Style Editor, under Polygon Style For Scale Range, click Add A Rule.
- Click the box under Thematic Rules.
- In the Create/Modify Expressions dialog box, click Property.
- In the Property list, select JOB_OPERATION_ID and enter the following condition:
- For new features: JOB_OPERATION_ID = ’1’.
- For modified features: JOB_OPERATION_ID = ’2’.
- For deleted features: JOB_OPERATION_ID = ’3’.
- Click OK.
- Click the box under Style. In the Style Point dialog box, specify the style.
For more information about the text function TB_SQL see Using Expressions in Style Definitions.
Variant: Style features using Oracle views
To use Oracle views to style new or modified features in a job
-
For each job-enabled feature class that you want to style, create an Oracle view that includes the JOB_OPERATION_ID attribute.
Job-enabled feature classes have a JOB_VERSION attribute, which is related to the TB_JOB_VERSION table.
Create an Oracle view, such as the building view LM_V_BUILDING in the land management demo data set:
CREATE VIEW LM_V_BUILDING AS select a.FID, a.AREA, a.GEOM, a.IDENTIFICATOR, a.ID_QUALITY, a.ID_TYPE, a.JOB_VERSION, b.JOB_OPERATION_ID FROM LM_BUILDING a, TB_JOB_VERSION b WHERE a.JOB_VERSION = b.JOB_VERSION
- Register the view as feature class. See "Creating a Feature Class From a View" in the Infrastructure Administrator Guide.
- In Display Manager, select the feature layer of the view, such as LM_V_BUILDING.
- Click Style.
- In the Style Editor, under Polygon Style For Scale Range, click Add A Rule.
- Click the box under Thematic Rules.
- In the Filter dialog box, under Property Or Expression, select Property.
- In the Property list, select JOB_OPERATION_ID and enter the following condition:
For new features: JOB_OPERATION_ID = 1.
For modified features: JOB_OPERATION_ID = 2.
For deleted features: JOB_OPERATION_ID = 3.
- Click OK.
- Click the box under Style. In the Style Polygon dialog box, specify the style.
Note:
You use the layer of the view for stylization, such as LM_V_BUILDING. Do not use the feature class layer, such as LM_BUILDING.