UiPath Documentation
activities
latest
false
Document Understanding activities

BasicDataPoint Class

BasicDataPoint facade in the V1 navigator for a basic (non-complex) field, providing strongly-typed access to read, add, insert, update, and remove its values.

Definition

  • Namespace: UiPath.DocumentProcessing.Contracts.Extensions.Navigator.V1
  • Assembly: UiPath.DocumentProcessing.Contracts
  • Inherits: DataPointFacadeBase

Description

BasicDataPoint is a facade for a basic (non-complex) field in an extraction result. It wraps a ResultsDataPoint and provides a fluent, strongly-typed API to read and edit the field's values as BasicValue objects.

The constructor throws System.ArgumentException if the wrapped data point is a complex type (table or field group). A BasicDataPoint is typically obtained from ExtractionResultHandler.FromBasicDataPoint(...) or from GetSimpleField(...) on ComponentCollectionFacade. For tables or field groups, use TableDataPoint or FieldGroupDataPoint instead.

Members

Constructors

ConstructorDescription
BasicDataPoint(ResultsDataPoint dataPoint)Initializes a new instance for a basic field. Throws ArgumentException if the field is a table or field group type.

Properties

PropertyTypeDescription
ValueBasicValueThe first value of the field, or null if the field has no values. Read-only.
ValuesBasicValue[]All values of the field. Read-only.

Methods

MethodReturnsDescription
GetValue(int index = 0)BasicValueReturns the value at the specified index. Defaults to the first value.
AddValue(ResultsValue value)BasicValueAppends an existing value to the end of the values list. Throws ArgumentNullException if value is null.
AddValue(string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)BasicValueBuilds a value from the supplied properties and appends it to the values list.
InsertValue(int index, ResultsValue value)BasicValueInserts an existing value at the specified index. Throws ArgumentNullException if value is null.
InsertValue(int index, string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)BasicValueBuilds a value from the supplied properties and inserts it at the specified index.
UpdateValue(ResultsValue value)BasicValueUpdates the first value with the supplied value. Adds the value if the field is missing.
UpdateValue(int index, ResultsValue value)BasicValueUpdates the value at the specified index. Adds the value if the field is missing. Throws ArgumentNullException if value is null.
UpdateValue(int index = 0, string value = null, float? confidence = null, float? ocrConfidence = null, ResultsContentReference reference = null, bool? operatorConfirmed = null, ResultsDerivedField[] derivedFields = null)BasicValueUpdates only the supplied (non-null) properties of the value at the specified index. Adds a value if none exists at that index.
Clear()BasicDataPointRemoves all values from the field and returns this instance for chaining.
Remove(int index)BasicDataPointRemoves the value at the specified index and returns this instance for chaining.

Inherited members

Field metadata and validator properties (FieldType, FieldId, FieldName, IsMissing, DataVersion, DataSource, OperatorConfirmed, ValidatorNotes, ValidatorNotesInfo) and GetRawDataPoint() are inherited from DataPointFacadeBase.

  • Definition
  • Description
  • Members
  • Constructors
  • Properties
  • Methods
  • Inherited members

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated