- In the Infrastructure Administrator, do one of the following:
- Click Enterprise and connect to the enterprise industry model. Open a project.
- Click File and open an industry model drawing or template.
- Expand the Industry Model node and click Form Designer.
The form designer is displayed in the right pane. The topics and feature classes are displayed in the form explorer.
- In the form explorer, select a feature class, select the Form Type, such as Default, and click Edit.
- In the Designer dialog box, on the designer toolbar, click .
- Click OK for the name.
- In the left pane, click the Properties tab.
- Select the UnAvailableValue property and enter the following text: No label text available.
- Select the SQL property and click to open the SQL Assistant.
- In the SQL Assistant dialog box, under Relations, expand the feature class, and click the label feature class.
The SQL expression is inserted into the expression input box.
- Replace the asterisk (*) in the SQL expression with LABEL_TEXT. The result is:
select LABEL_TEXT from <featureclass>_TBL
where FID_PARENT in (select FID from <featureclass> where fid={fid})
- Click Execute to run the SQL statement and check the syntax.
- Exit the SQL Assistant and the Form Designer.
- In the feature class form, browse for the records. If a record has no label, the UnAvailableValue is displayed instead of the label text.
Note: A feature can have more than one label, which is not considered in the above example.
Example: SQL label statement to display the area of an area topology in the centroid feature class
select ROUND(bts.EXACT_AREA,6)
from BF_TSUR bts, BF_TCEN btc
where btc.FID_TSUR = bts.FID
and btc.FID_CENTROID = {FID}
select exact_area from LM_T_LANDUSE_TSUR
where FID in (select FID_TSUR from LM_T_LANDUSE_TCEN
where FID_CENTROID in (select FID from LM_LANDUSE
where fid={fid}))