Select to view content in your preferred language

Auto-populate attributes with editor widget

1991
0
11-02-2020 11:53 AM
StedinNetbeheer_B_V_
Occasional Contributor

for our organization we are using webmap designed by us and we are using ersi functionalty from ArcGIS portal to read portal webmaps to the opensource webmap. I use this code below to read the functionalty.

what I need is, to use Esri Editor Widget to auto populate the attributes when I start editing. 

anyone can give me some advise how I can do that?. 

I need to auto populate some information from the webmap I designed to the the attributes of a polygon when I start editing and draw a polygon.

loadModules([
'esri/config',
'esri/identity/OAuthInfo',
'esri/identity/IdentityManager',
'esri/layers/FeatureLayer',
'esri/tasks/support/Query',
'esri/tasks/Locator',
'esri/WebMap',
'esri/views/MapView',
'esri/widgets/Home',
'esri/widgets/Editor',
]).then(([esriConfig, OAuthInfo, esriId, FeatureLayer, Query, Locator, WebMap, MapView, Home, Editor]) => {
esriConfig.portalUrl = config.portalUrl;

Thanks

Tags (1)
0 Kudos
0 Replies