I would like to see a SQL clause type parameter added to the FeatureSet tools like Search Cursor has.
FeatureSetByName( map, title, fieldList?, includeGeometry? )
SearchCursor(in_table, field_names, {where_clause}, {spatial_reference}, {explode_to_points}, {sql_clause})
I am using FeatureSet wrapped with a Filter now and it does work
var sql = "PointID = '" + $feature.PointID + "'";
var tbl = Filter(FeatureSetByName($map,"Points", ['DesignLat'], false), sql);
return First(tbl).DesignLat
In my case I have 100,000+ records in this table but I just want the 1 record. The way it is now the return is all 100,000 then I have to filter out the one I need. If a sql clause was added to the call it would just have to return not only just one row but just one field. Would be so much faster right?
I have 30 of these simple lookups in one popup and it is getting slow. Of course the other bummer with Arcade setup is I have to query these 100,000+ records 30 times! Would be nice to some do one lookup but have the return in multiple fields.
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.