I am new to the javascript api. I am stuck converting some arcade code into javascript.
So I can add html (bold, url, etc) to the print out.
Basically when the user clicks it will give me an APN which I want to filter/order in the DSD_HistoricPTS feature set
I believe I want to use a FeatureLayerView so the processing can take place on the clients side.
//arcade code below
var clickedParcelAPN = $feature.APN //{APN}
var filterbyAPN = 'job_apn = @clickedParcelAPN'
var PTSFilterAPN = Filter(DSD_HistoricPTS, filterbyAPN)
var PTSOrderBY_ProjectId = OrderBy(PTSFilterAPN, 'project_id')
for (var f1 in PTSOrderBY_ProjectId){
popupString += Text("Project Title: " + f1.project_title) + TextFormatting.NewLine +
("Project Number: " + f1.project_id) + TextFormatting.NewLine +
("Project Created: " + f1.date_project_create) + TextFormatting.NewLine +
etc
}
I can't figure out the javascript equivalent to Filter and OrderBy. I am sure there is a super simple solution but it has me stuck.
Thank you!