Show / Hide Table of Contents

Method GetFieldValue

GetFieldValue(PopupField)

Gets the attribute value for the field.

Declaration
public object GetFieldValue(PopupField field)
Parameters
Type Name Description
PopupField field

The geoelement's PopupField.

Returns
Type Description
Object

The field value for the given PopupField.

Remarks

If the field is part of a CodedValueDomain, the Code is returned (unlike GetFormattedValue(PopupField), which returns the Name).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.2.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 100.15

GetFieldValue(String, PopupElement)

Returns the attribute value for the field specified by a name.

Declaration
public object GetFieldValue(string fieldName, PopupElement popupElement)
Parameters
Type Name Description
System.String fieldName

The name of the field.

PopupElement popupElement

The pop-up element to look up for the field. This argument is useful only if the pop-up element is coming from an Arcade expression evaluation that can return a list of attributes (see EvaluatedElements).

Returns
Type Description
Object

The field value for the given PopupField.

Remarks

If any field is using expressions, use EvaluateExpressionsAsync() to evaluate the Arcade expressions before trying to get the fields' values. Otherwise, the values may not be evaluated properly. If the field is part of a CodedValueDomain, the Code is returned (unlike GetFormattedValue(PopupField), which returns the Name).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15
In This Article
Back to top Copyright © 2022 Esri.