GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

FormTemplateExpressionInfo Class

The ExpressionInfo class defines the makeup of visibility expressions, required expressions, editable expressions, and value expressions.
ArcGIS Maps SDK for JavaScript

public class FormTemplateExpressionInfo : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 FormTemplateExpressionInfo

Constructors

FormTemplateExpressionInfo() Constructor

Parameterless constructor for use as a Razor Component.

public FormTemplateExpressionInfo();

FormTemplateExpressionInfo(string, string, Nullable, string) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public FormTemplateExpressionInfo(string? expression=null, string? name=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType> returnType=null, string? title=null);

Parameters

expression System.String

An Arcade expression following the specification
defined by the Form Constraint or Form Calculation profiles.
ArcGIS Maps SDK for JavaScript

name System.String

The name of the expression.
ArcGIS Maps SDK for JavaScript

returnType System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType>

Indicates the return type of the Arcade expression.
ArcGIS Maps SDK for JavaScript

title System.String

The title used to describe the value returned by the expression.
ArcGIS Maps SDK for JavaScript

Properties

FormTemplateExpressionInfo.Expression Property

An Arcade expression following the specification defined by the Arcade Popup Profile. Expressions must return a string or a number and may access data values from the feature, its layer, or other layers in the map or datastore with the $feature, $layer, $map, and $datastore profile variables.

public string? Expression { get; set; }

Property Value

System.String

FormTemplateExpressionInfo.Name Property

The name of the expression. This is used to reference the value of the given expression in the popupTemplate’s content property by wrapping it in curly braces and prefacing it with expression/ (e.g.
{expression/expressionName}).

public string? Name { get; set; }

Property Value

System.String

FormTemplateExpressionInfo.ReturnType Property

Indicates the return type of the Arcade expression.

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType> ReturnType { get; set; }

Property Value

System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType>

FormTemplateExpressionInfo.Title Property

The title used to describe the value returned by the expression in the popup. This will display if the value is referenced in a FieldInfo table.

public string? Title { get; set; }

Property Value

System.String

Methods

FormTemplateExpressionInfo.GetExpression() Method

Asynchronously retrieve the current value of the Expression property.

public System.Threading.Tasks.Task<string?> GetExpression();

Returns

System.Threading.Tasks.Task<System.String>

FormTemplateExpressionInfo.GetName() Method

Asynchronously retrieve the current value of the Name property.

public System.Threading.Tasks.Task<string?> GetName();

Returns

System.Threading.Tasks.Task<System.String>

FormTemplateExpressionInfo.GetReturnType() Method

Asynchronously retrieve the current value of the ReturnType property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType>> GetReturnType();

Returns

System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType>>

FormTemplateExpressionInfo.GetTitle() Method

Asynchronously retrieve the current value of the Title property.

public System.Threading.Tasks.Task<string?> GetTitle();

Returns

System.Threading.Tasks.Task<System.String>

FormTemplateExpressionInfo.SetExpression(string) Method

Asynchronously set the value of the Expression property after render.

public System.Threading.Tasks.Task SetExpression(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

FormTemplateExpressionInfo.SetName(string) Method

Asynchronously set the value of the Name property after render.

public System.Threading.Tasks.Task SetName(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

FormTemplateExpressionInfo.SetReturnType(Nullable) Method

Asynchronously set the value of the ReturnType property after render.

public System.Threading.Tasks.Task SetReturnType(System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType> value);

Parameters

value System.Nullable<dymaptic.GeoBlazor.Core.Enums.ExpressionInfoReturnType>

The value to set.

Returns

System.Threading.Tasks.Task

FormTemplateExpressionInfo.SetTitle(string) Method

Asynchronously set the value of the Title property after render.

public System.Threading.Tasks.Task SetTitle(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task