Table of Contents

Class FileCabinetFieldBase

Namespace
DocuWare.Platform.ServerClient
Assembly
DocuWare.Platform.ServerClient.dll

Base file cabinet field definition

[Lobster]
public class FileCabinetFieldBase : IRelationsWithProxy, IRelations, IHttpClientProxy
Inheritance
FileCabinetFieldBase
Implements
Derived
Inherited Members

Constructors

FileCabinetFieldBase()

Creates a new instance of this class

public FileCabinetFieldBase()

Properties

DBFieldName

The name of the database column for the field.

public string DBFieldName { get; set; }

Property Value

TypeDescription
string

DWFieldType

The DocuWare type of the field

public DWFieldType DWFieldType { get; set; }

Property Value

TypeDescription
DWFieldType

DisplayName

Label (display name) of the field.

public string DisplayName { get; set; }

Property Value

TypeDescription
string

DropLeadingBlanks

Determines whether the system will automatically remove any leading spaces. If both the Remove leading spaces and Remove leading zeros options are enabled, both leading spaces and zeros are removed: _07896 becomes 7896.

public bool DropLeadingBlanks { get; set; }

Property Value

TypeDescription
bool

DropLeadingZero

Determines whether the system will automatically remove any leading zeros. If both the Remove leading spaces and Remove leading zeros options are enabled, both leading spaces and zeros are removed: _07896 becomes 7896.

public bool DropLeadingZero { get; set; }

Property Value

TypeDescription
bool

FieldInfoText

Description of the field.

public string FieldInfoText { get; set; }

Property Value

TypeDescription
string

FixedEntry

Fixed value of the field.If it's null the field has no fixed value. Not relevant for fields with "Table" DWFieldType.

public string FixedEntry { get; set; }

Property Value

TypeDescription
string

Length

Length of the field (only for text fields).

public int Length { get; set; }

Property Value

TypeDescription
int
public Link[] Links { get; set; }

Property Value

TypeDescription
Link[]

NotEmpty

Obsolete since Lobster. Use the same property on dialog field and stamp form field.

public bool NotEmpty { get; set; }

Property Value

TypeDescription
bool

Precision

The number of decimal places that can be entered after the decimal point of a numeric and decimal fields.

public int Precision { get; set; }

Property Value

TypeDescription
int

Scope

Gets whether the field is a user or a system field.

public FileCabinetFieldScope Scope { get; set; }

Property Value

TypeDescription
FileCabinetFieldScope

Gets the Uri of the link for the relation “selectList”.

public string SelectListRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “selectList” if it exists, or null if this link does not exist. The returned link can be absolute or relative. If it is a relative link you must set it in the right context yourself.

Methods

GetSelectListResultFromSelectListRelation()

Calls the HTTP Get method on the link for the relation “selectList”.

public SelectListResult GetSelectListResultFromSelectListRelation()

Returns

TypeDescription
SelectListResult

The content of the response.

GetSelectListResultFromSelectListRelationAsync()

Calls the HTTP Get method on the link for the relation “selectList” asynchronously.

public Task<DeserializedHttpResponse<SelectListResult>> GetSelectListResultFromSelectListRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

This method follows the link for the relation “selectList”.

GetSelectListResultFromSelectListRelationAsync(CancellationToken)

Calls the HTTP Get method on the link for the relation “selectList” asynchronously.

public Task<DeserializedHttpResponse<SelectListResult>> GetSelectListResultFromSelectListRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

This method follows the link for the relation “selectList”.

PostToSelectListRelationForSelectListResult(FileCabinetSelectListExpression)

Calls the HTTP Post method on the link for the relation “selectList”.

public SelectListResult PostToSelectListRelationForSelectListResult(FileCabinetSelectListExpression dataToSend)

Parameters

TypeNameDescription
FileCabinetSelectListExpressiondataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
SelectListResult

The content of the response.

PostToSelectListRelationForSelectListResultAsync(FileCabinetSelectListExpression)

Calls the HTTP Post method on the link for the relation “selectList” asynchronously.

public Task<DeserializedHttpResponse<SelectListResult>> PostToSelectListRelationForSelectListResultAsync(FileCabinetSelectListExpression dataToSend)

Parameters

TypeNameDescription
FileCabinetSelectListExpressiondataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

This method follows the link for the relation “selectList”.

PostToSelectListRelationForSelectListResultAsync(CancellationToken, FileCabinetSelectListExpression)

Calls the HTTP Post method on the link for the relation “selectList” asynchronously.

public Task<DeserializedHttpResponse<SelectListResult>> PostToSelectListRelationForSelectListResultAsync(CancellationToken cancellationToken, FileCabinetSelectListExpression dataToSend)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

FileCabinetSelectListExpressiondataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
Task<DeserializedHttpResponse<SelectListResult>>

A task which runs the request.

Remarks

This method follows the link for the relation “selectList”.

SetProxy(HttpClientProxy)

Sets the HTTP communication proxy which is used in further HTTP communication.

public virtual void SetProxy(HttpClientProxy proxy)

Parameters

TypeNameDescription
HttpClientProxyproxy

The HttpClient instance which is used in further HTTP communication.

Remarks

The HTTP proxy is used to handle the HTTP requests which are created by this instance. The proxy is used in case a request is sent to a URL which is resolved from a link.