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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |