Adding a table as dynamic text using an expression
Inserting Table dynamic text allows you to display the attributes from a table within your map or source database. After selecting the table you want to use, you can specify a specific attribute field to display using filtering and query options. You can query and use table values from any table you can access in ArcMap.
You can display an attribute field by using a SQL query to choose field values, or you can use the Expression Parser dialog box to create a script that returns the attribute or attribute field value you want displayed.
- Start ArcMap.ヒント:
If the ArcMap - Getting Started dialog box appears, you can open a new or existing map document. You can also check the Do not show this dialog box in the future check box and click Open.
- On the main menu, click Customize → Toolbars → MPS Atlas.
-
Click the Add Dynamic Text button on the MPS Atlas toolbar.
A crosshair with a letter A appears.
-
Click anywhere in the map sheet layout.
A piece of dynamic text is inserted on the page.
-
Double-click the dynamic text.
The Dynamic Text Properties dialog box appears.
- Click the Dynamic Text tab if necessary.
- Click the Dynamic Text drop-down arrow and choose Table.
-
Click Insert.
The table text appears in the text box.
-
Click the dynamic text element in the text box.
The Table Dynamic Text Properties dialog box appears.
- Click the Browse button to navigate to the table you want to use.
-
Click Select.
The path to the table appears in the Table text box. A field name appears in the Field drop-down list.
-
Click Query Builder if you want to specify attribute field values to display.
The Select Features Using a Query dialog box appears.
- Create a SQL expression to display the attribute field values you want displayed.
-
Click OK when you are finished creating the SQL query expression.
The Table Dynamic Text Properties dialog box appears.
- Click the Expression option.
-
Click Edit Script.
The Expression Parser dialog box appears.
- In the Expression area, click to right of the Generate = expression.
- Double click a field name in the Parameter list.
In the Expression area, the field name appears to the right of Generate =: Generate = [NAME].
ヒント:Double click a field name without an _arr suffix.
- Click Verify.
The Output area lists Function evaluated successfully.
- Click OK to close the Expression Parser dialog box.
- Click OK to close the Table Dynamic Text Properties dialog box.
- Click OK to close the Dynamic Text Properties dialog box.
The table dynamic text displays in the page layout.
If you change the layer or data frame, the expression will be cleared. A new layer will require a new set of function parameters.