Select to view content in your preferred language

How to get dataSource updated after modifying a feature calling a SOE

114
0
05-13-2025 12:09 PM
David_RonaldSuárez_Urresti
Occasional Contributor

I am developing a widget on Experience Builder for Developer 1.16. My Widget get the selected records from the map and load the data into a table. The user can check any of the selected features to call a SOE. The SOE change the feature state field but the change is not refreshed on the table. 

1) I get the selected features as:

props.useDataSources.forEach((useDataSource, index) => {

                const dataSource = DataSourceManager.getInstance().getDataSource(useDataSource.dataSourceId);
...
}
 
2) Then I map the selected record into a html table.
3) After calling the SOE I try to re read the datasource the same way as step 1, but the data source is not updated whith the data changes.
 
How Can I update the data source to show the new value into my table? If I clear the selection and select the same feature on the map, the updated value in the table is showed.
 
 
0 Kudos
0 Replies