laptop and a wrench

Bogue

In Map Viewer, the Arcade $feature global variable returns fields alphabetically instead of the default field order it is published as.

Dernière publication: October 6, 2022 ArcGIS Online
Numéro d’ID de bogue BUG-000152604
EnvoiSeptember 27, 2022
Dernière modificationSeptember 5, 2024
S’applique àArcGIS Online
Version trouvée10.2
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutWill Not Be Addressed

Informations supplémentaires

This issue is not addressed at this time as it is a breaking change to existing expressions.

Solution de contournement

Use a different value other than $feature. For example,

var features = FeatureSetByName($map, 'layername')

var schema_dict = Schema(features);

var fields_array = schema_dict['fields'];

var allFields = '';

for(var i in fields_array){

  var fieldname =fields_array[i]['name']

  var allFields = Concatenate([allFields, fieldname, ": ", Text($feature[fieldname]), TextFormatting.NewLine]);

  }

return allFields

Étapes pour reproduire

ID de bogue: BUG-000152604

Logiciel:

  • ArcGIS Online

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement