Select to view content in your preferred language

get pointed record data from popupTemplate

527
1
Jump to solution
12-16-2020 09:25 AM
Labels (2)
MichaelLev
Regular Contributor

I'm developing custom widgets for WAB (Develper Edtion) 2.17, Launchpad Theme, on 3D Scenes (ArcGIS API for javascript 4.17), on our compamy portal (version 10.7.1).

I am still a newbie... When I create a popup (by

this.layerClients.popupTemplate = {
"title": `${that.nls.popupTitle} {Client_Num} - {Client_Name}`,
outFields: ["*"],
"content": featurePointed => { // we chose content to be a function
outFields: ["*"],
"content": featurePointed => { ...

Then, I don't know how do I get a handle to the data of the pointed record.

I have the "featurePointed" but I can't find how to get the data from it.

 

I'll appreciate help

0 Kudos
1 Solution

Accepted Solutions
MichaelLev
Regular Contributor

Found...  use featurePointed.graphic.attributes, for example:

featurePointed.graphic.attributes.Client_Num

View solution in original post

0 Kudos
1 Reply
MichaelLev
Regular Contributor

Found...  use featurePointed.graphic.attributes, for example:

featurePointed.graphic.attributes.Client_Num

0 Kudos