Select to view content in your preferred language

Dynamic Text based on map selection

550
3
01-17-2024 06:59 AM
Labels (1)
ShaiBravo
Occasional Contributor

Hi there,

 

Is it possible to create dynamic text in a layout based on my current map selection? I am creating a custom layout for an ArcGIS experience and would like the selection on that map to be populated in the layout.

 

Shai

3 Replies
AubriKinghorn
Esri Regular Contributor

You can't create populate dynamic text based on the current map selection, but you can use a SQL query in value dynamic text to get the same result. Learn more here https://pro.arcgis.com/en/pro-app/3.1/help/layouts/add-dynamic-text.htm#GUID-890A21B3-C174-48EF-A33A...

Cheers,
Aubri
SusanPollard
Occasional Contributor

Can you give an example of the query and will the selection be visibly highlighted in the map layout frame? Not ideal when  there is multiple dynamic text boxes used. Can we take it a step further and also show related data to the selection as dynamic text if there is a relationship?

0 Kudos
AubriKinghorn
Esri Regular Contributor

I think I was unclear, there is not a way to automatically generate a SQL query for a selected set of features. Rather, you can write a SQL query that selects the same features. At the most basic level you can write a SQL query for all the ObjectIDs of the selected features. Other options, such as writing a query for all the features where COUNTY_NAME = "Adams" may work depending on your data and selection.

When data is selected in the map that selection appears on the layout as well. You can chose to not include selection symbology when exporting a layout though. 

Cheers,
Aubri
0 Kudos