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 |
---|---|
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.2.1 - 200.6 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.6 |
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 |
---|---|
System.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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |