view datasource items

452
1
08-09-2022 07:11 PM
JRR77
by
New Contributor

Hi, getting my head around custom widget development - doing all the tutorials I can find. SO far I've managed to build a custom query widget which uses a feature layer on a webmap as the datasource.

I've also included an Esri table widget that adjusts rows when the user can performs the query. (view screenshot). What I'm struggling with is how to view the data associated with each record external to the map - ie console logging / or (very customised) html list.

I've console logged the data source from my widget whenever the query changes, but it doesn't hold any information regarding the records (it does have a blank records[] array)

Are there any examples, tutorials, advice for this? Thanks

screeny.png

0 Kudos
1 Reply
JRR77
by
New Contributor

got it 🙂 using FeatureLayerDataSource .

in the ArcGIS jsapi there is the ability to query attachments, can that be done here does anyone know?

thanks

0 Kudos