Configuring calculated field properties
Configuring a calculated field involves defining a SQL statement, a VBScript, and a field in which to store text strings. Similar to calculated representations, you can run code before and after the rule is run. This is all configured in the Visual Specifications Advanced View dialog box.
步骤:
- Add a new rule if necessary.
- Double-click the Rule Description cell and type a description for the new rule.
- Click the ellipsis (...) in the Workspace cell and define the workspace.
- Click the Layer drop-down arrow and choose the map layer for the rule.
- Click the ellipsis (...) in the Rep/Field Name cell and define the Representation properties dialog box.
- Optionally, click the Pre Code drop-down arrow and choose the code you want to execute before the rule is run.
- Click the SQL Statement drop-down arrow and choose Edit SQL Statement.
- Define the SQL statement that defines the features to include with the rule.
-
Click the Expression drop-down arrow and choose Edit Expression.
The Expression Parser appears.
- Configure the VBScript you want to use to refine the feature selection for the rule.
-
Click OK.
An example of a text string appears in the Preview field.
- Optionally, click the Post Code drop-down arrow and choose the code you want to execute after the rule has been run.
- Optionally, click Apply to save the new rule and continue working in the Visual Specifications Advanced View window.
- Click OK to save all changes and close the Visual Specifications Advanced View dialog box.
9/30/2010