Select to view content in your preferred language

Utility Network Trace results

326
4
07-11-2025 03:17 AM
MariaNuñezReyes
New Contributor

Hello,
I am developing a new functionality in Experience Builder based on extracting the selection of records that implements the Utility Network Trace widget implemented by ESRI to print them in an Excel. I've been trying to implement this functionality for a while but I can't seem to extract the results.

The Utility Network Trace widget, as you may know, is responsible for implementing a network connectivity analysis from a point marked on the map. Once the tool is executed, the records highlighted in blue appear on the map and it returns a list of the affected records. Well, as I cannot modify this widget because it comes coded as it is an ESRI widget, I have implemented another one that observes the changes in the map and uses the Utility Network Trace widget given by the ESRI JavaScript SDK. The result of the widget is a graph with the following values: attributes, geometry, popuptemplate and symbol. What could help me to get the valves and distribution networks that have been selected, is the geometry of the graph but even using the QueryFeatures of the Feature Layer does not work with that.

I understand that this functionality is not so crazy since the trace widget itself implemented by ESRI, shows a list with the affected records. Can someone help me?

0 Kudos
4 Replies
AlixVezina
Esri Regular Contributor

Hi @MariaNuñezReyes ,

Which version of Enterprise and/or Experience Builder developer edition are you using.

If you have a fairly recent version, you should be able to leverage the export data action within Experience Builder to extract features selected by the Trace widget. Is this something you've already explored?

0 Kudos
MariaNuñezReyes
New Contributor

Hi,

I'm using ArcGIS Experience Builder developer in version 1.14. Can you explain deeper the export data action? Everything I tried is by implementing a new widget using the Trace widget of the SDK and a JimuMapView component to search the resulting selected features.

Thank you

0 Kudos
AlixVezina
Esri Regular Contributor

@MariaNuñezReyes , there is an actions button as part of data centric widgets (e.g., Table widget, Select widget) that allow you to export selected features after the trace results are returned.

Also, the selected features set should be available from this class, upon change of selected records: DataRecordsSelectionChangeMessage | ArcGIS Experience Builder | Esri Developer

AlixVezina_0-1753118223829.png

 

0 Kudos
JunshanLiu
Esri Contributor

The UNT widget publish the "RecordSelectionChange" message, so I think the easy way to get the trace result is to create a widget that provides an action to listen to this message, you can get the selected records in the action. Here is a sample widget that demos how tho listen to messages: https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets/message-subscrib...

0 Kudos