In visualization and popup, arcade are useful. But I need to add custom number field into FeatureLayerDataSource. That field then will be calculated by an arcade executor.
Also, layer has data more than 1 million. So what I'm looking for is to get score by doing some math on couple fields, then sort them. Sort will require to iterate all features. So queryFeatures with 2000 request each or getRecords then setRecords can be used. I hope then we can createJSAPILayer based on that DataSource object.
I am trying to figure out extent of the solutions