ViewProperty properties

Version: 10.3

The ViewProperty model defines a set of properties that characterizes an EntityView property. The ViewProperty properties define what to display, and provides hints allowing the user interface to choose the appropriate control for the display of EntityView properties in the user interface.

Any Commerce plugin can influence what data is returned by adding, removing, or modifying properties before the view is returned.

The following table describes ViewProperty properties:

Property

Description

Name

The common name of the view property. This can be shared among views and is used to localize the DisplayName (string).

DisplayName

The localized name of the property. By default, the property is not localized and its value is the same as the Name field (string).

Value

The value of the property, typically a raw value and its formatting.

RawValue

Direct value from the mapping with no formatting. The value is formatted using policy-based formatting (string).

OriginalType

The value of the OriginalType is the "ViewProperty" raw value system type, for example, System.DateTimeOffset, System.Boolean, and so on. If a value is not specified, it is set to the FullName of the type of the value used for RawValue.

IsHidden

Indicates whether the view property is displayed or not in the user interface.

IsReadOnly

Indicates whether the view property is read only or requires a set value.

UiType

Controls how the property is rendered inside the view. The following UI types are used to render default views in the Business Tools: "EntityLink", "Autocomplete", "tags", "Options", "List", "SubItemLink", "tags", "html", "Dropdown", "MultiLine", "DownloadCsv".

If not specified, then the property field value is rendered as simple text.

IsRequired

Indicates whether the property is mandatory.

Policies

Contains any constraints, closed vocabularies, and so on, as policies for actions (string).

Do you have some feedback for us?

If you have suggestions for improving this article,