Select to view content in your preferred language

How can I check change on popup

35
0
yesterday
emreaktas1
New Contributor II

Hello esri community.
I added an action to a popup and on every click it returns the query results to a table.
I want to check for a change in this section. I want to dynamically delete the old query and add new values ​​to the query result.
I'm new to this (reactiveUtils) can you help me?

emreaktas1_0-1720418816639.png

 

// js kodu,

//  popupTemplate başlangıcı

 
  popupTemplate: {
            title: "{adi_soyadi }",                          
                fieldInfos: [
                  {
                    fieldName: "sapmle",
                    label: "Ada/Parsel",
                    format: {
                      places: 0,
                      digitSeparator: true
                    }
                  },  
                  {
                    fieldName: "sapmle",
                    label: "Ad, Soyad",
                    format: {
                      places: 0,
                      digitSeparator: true
                    }
                  },  
                  {
                    fieldName: "sapmle",
                    label: "Hisse Tip:",
                    format: {
                      places: 0,
                      digitSeparator: true
                    }
                  },          
                ],
                actions: [
                  {
                    id: "kadastroDetay",
                    title: "Kadastro Detayları Gör"
                  }
                ],
                content: formatContentKadastro
           
          },

//  popupTemplate sonu

 
 
reactiveUtils.on(
       () => view.popup,
         "trigger-action",
         (event) => {
     if (event.action.id === "find-brewery") {
      const attributes = view.popup.selectedFeature.attributes;        
      const info = attributes.adi_soyadi;
           
     if (info) {  
The query runs and adds new query data to the table on click. I want to delete old data
}

 

0 Kudos
0 Replies