Select to view content in your preferred language

Dynamic Text in Report generation

249
6
Jump to solution
03-27-2025 08:02 PM
17001
by
Emerging Contributor

Hello, 

I am creating a New Report using the default Esri template "Attribute List with Grouping". All seems well but I have two or more columns that needed to automatically "Word wrapped". The row height also must be automatically adjusted when generating single line or two lines text. 

The default dynamic text: <dyn type="report" property="field-value" field="name"/>

17001_3-1743130880116.png

This is the generated Report.

17001_0-1743130240837.png

The Report should look like this:

17001_2-1743130542914.png

Is there a dynamic text tags can be used to achieve those requirements? or any other techniques to achieve the mentioned desires output? 

Thanks in advance!

 



 

0 Kudos
1 Solution

Accepted Solutions
AlyciaRajendran_esri
Esri Contributor

Hello! We support word wrap for the Details subsection! Just select the Details subsection in the Contents pane to activate the Details tab on the ribbon. On the ribbon, there is a General group, check on "Wrap text elements". This is available from Pro 3.2 and newer versions.

Thanks!

View solution in original post

6 Replies
AlyciaRajendran_esri
Esri Contributor

Hello! We support word wrap for the Details subsection! Just select the Details subsection in the Contents pane to activate the Details tab on the ribbon. On the ribbon, there is a General group, check on "Wrap text elements". This is available from Pro 3.2 and newer versions.

Thanks!

17001
by
Emerging Contributor

Hello again, I have another related query.

Is it possible to format dynamic text based on conditions?
For example, texts should be in Italic font style, or else Bold font style?

0 Kudos
AlyciaRajendran_esri
Esri Contributor

I suggest using conditional Arcade expressions for this, utilizing text tags: Text formatting tags—ArcGIS Pro | Documentation. An example of this would be here: Arcade expression based conditional formatting for... - Esri Community.

Arcade expressions are added as a property of a report: Customize report properties—ArcGIS Pro | Documentation

17001
by
Emerging Contributor

Thanks for giving a sample but it applies on Labeling only. Pardon, I did not  mentioned that I want to apply conditional statements inside the dynamic text on Report on my question.
Dynamic Text I want to apply conditional statement:
<dyn type="report" property="field-value" field="fieldName"/>

0 Kudos
AlyciaRajendran_esri
Esri Contributor

This is an answer for reports. The example was from labeling, but the syntax is Arcade, it is the same. Please see how to add Arcade expressions (last documentation link) to add them to your report. They will be added as a field value.

0 Kudos
17001
by
Emerging Contributor

Got it, thanks.

0 Kudos