Get Attributes from Selected Feature

215
0
08-28-2020 07:21 AM
by Anonymous User
Not applicable

Hello All,

I am new to WAB development and Arc in general, so please excuse any incorrect terminology.  I am trying to write a custom utility network trace widget for use with the WAB using the JavaScript API 3.x and the REST API.  I need to allow the user to select a starting point by clicking on a feature, and I believe I need to get the attributes of the selected feature for the REST API.  The REST API documentation says that the trace function needs a guid, terminalId and percentAlong parameters.  I found an example of a custom trace here: GitHub - Esri/solutions-widget-utility-network-trace: A widget to perform tracing for the ArcGIS Uti...  I tried studying the example, but I can't figure out how the attributes are acquired.  How do I get the data needed by the REST API from the selected feature using the JavaScript API?

Thank you.

0 Kudos
0 Replies