Select to view content in your preferred language

How to get the values within layer fields?

330
1
Jump to solution
08-01-2022 09:01 PM
utility9213
Emerging Contributor

Hello everyone, I am currently trying to get the values within a specific field. For example, there is a date field in my layer but how do I access the data within it? The length of this is 8.. but I am not sure how to access the values. Please do help me on this thank you 🙂

  1. alias: "date"
  2. editable: undefined
  3. length: 8
  4. name: "date"
  5. nullable: undefined
  6. type: "esriFieldTypeDate"
0 Kudos
1 Solution

Accepted Solutions
Storylm
Occasional Contributor
View.whenLayerView(layer).then(function (e) {
        View.on("click", function (value) {
console.log(e)
}
 
The data you want is in the e.layer.fields

View solution in original post

0 Kudos
1 Reply
Storylm
Occasional Contributor
View.whenLayerView(layer).then(function (e) {
        View.on("click", function (value) {
console.log(e)
}
 
The data you want is in the e.layer.fields
0 Kudos