Table of Contents

Class repDomain

Namespace
PolarStudio
Assembly
PolarStudio.dll

This class contains the information about a domain in an application in the Polar Studio repository.

public class repDomain
Inheritance
repDomain
Inherited Members
Extension Methods

Properties

AcceptFileTypesMode

Returns the mode for accepting files based on file extensions. One of: 'AcceptAll', 'Accept', 'Reject'

public string AcceptFileTypesMode { get; }

Property Value

string

Application

Returns the repository application this domain is defined within.

public repApplication Application { get; }

Property Value

repApplication

AutoTrim

Returns true if white space is to be removed from the beginning and end of text values.

public object AutoTrim { get; }

Property Value

object

DateTimeInputType

Returns the type for a DateTime domain. One of: 'DateAndTime', 'DateOnly', 'TimeOnly', 'DateAndTimeUTC'

public string DateTimeInputType { get; }

Property Value

string

DateTimePrecisionSeconds

Returns True if times must always show the seconds, even if :00

public bool DateTimePrecisionSeconds { get; }

Property Value

bool

DecimalPlaces

Returns the number of decimal places for numeric values. -1 if not set.

public int DecimalPlaces { get; }

Property Value

int

DefaultControlType

Returns the default control type to use for fields that use this domain.

public string DefaultControlType { get; }

Property Value

string

DetailsEnvelop

Returns an envelop to use for the details form for this blob.

public string DetailsEnvelop { get; }

Property Value

string

DomainType

Returns the type of domain. One of: 'Number', 'Text', 'DateTime', 'ValueList', 'FileUpload'.

public string DomainType { get; }

Property Value

string

EnableDetails

Returns a boolean indicating the details form for this blob can be shown.

public bool EnableDetails { get; }

Property Value

bool

FileExtensions

Returns the comma separated list of file extensions to accept or reject.

public string FileExtensions { get; }

Property Value

string

HideZeroValues

Returns if zero values (value 0) are to be shown as 'empty'. Allow required fields to be zero in the database and be shown as an empty box (not filled) in the user interface.

public bool HideZeroValues { get; }

Property Value

bool

ImageAutoResizing_AutoRotate

A boolean indicating to automatically rotate images when resizing based on the provided exif data.

public bool ImageAutoResizing_AutoRotate { get; }

Property Value

bool

ImageAutoResizing_ConvertPngToJpg

A boolean indicating to convert png images to jpg when resizing.

public bool ImageAutoResizing_ConvertPngToJpg { get; }

Property Value

bool

ImageAutoResizing_Enabled

Returns if images are to be automatically resized when uploaded.

public bool ImageAutoResizing_Enabled { get; }

Property Value

bool

ImageAutoResizing_Height

Sets the maximum height for uploaded images to which they are resized.

public int ImageAutoResizing_Height { get; }

Property Value

int

ImageAutoResizing_JpgQuality

Sets the jpeg quality (1-99) for images when they are resized.

public int ImageAutoResizing_JpgQuality { get; }

Property Value

int

ImageAutoResizing_Width

Sets the maximum width for uploaded images to which they are resized.

public int ImageAutoResizing_Width { get; }

Property Value

int

ImageHeightForm

Returns the height of an image when shown in form view.

public int ImageHeightForm { get; }

Property Value

int

ImageHeightList

Returns the height of an image when shown in list view.

public int ImageHeightList { get; }

Property Value

int

ImageWidthForm

Returns the width of an image when shown in form view.

public int ImageWidthForm { get; }

Property Value

int

ImageWidthList

Returns the width of an image when shown in list view.

public int ImageWidthList { get; }

Property Value

int

MaxFileSize

Returns the max file size of uploaded blobs in kilo byte.

public int MaxFileSize { get; }

Property Value

int

MaxInlineObjectSizeDetails

Returns the maximum file size in kilo bytes of image blobs to be shown inline in blob details view.

public int MaxInlineObjectSizeDetails { get; }

Property Value

int

MaxInlineObjectSizeForm

Returns the maximum file size in kilo bytes of image blobs to be shown inline in form view.

public int MaxInlineObjectSizeForm { get; }

Property Value

int

MaxInlineObjectSizeList

Returns the maximum file size in kilo bytes of image blobs to be shown inline in list view.

public int MaxInlineObjectSizeList { get; }

Property Value

int

MaxLength

Returns the maximum length for text values. 0 means not set.

public int MaxLength { get; }

Property Value

int

MaxValue

Returns the maximum value for numeric values. NULL if not set.

public object MaxValue { get; }

Property Value

object

MinLength

Returns the minimum length for text values. 0 means not set.

public int MinLength { get; }

Property Value

int

MinValue

Returns the minimum value for numeric values. NULL if not set.

public object MinValue { get; }

Property Value

object

Name

Returns the name of the domain.

public string Name { get; }

Property Value

string

NoStore

Returns if a blob is not to be cached by the browser or by proxies.

public bool NoStore { get; }

Property Value

bool

Notes

Returns the notes for the domain.

public string Notes { get; }

Property Value

string

Options

Returns the options of a ValueList domain.

public repDomainOptions Options { get; }

Property Value

repDomainOptions

Pattern

Returns the regular expression to use when validating new text values.

public string Pattern { get; }

Property Value

string

Percentage

Returns numeric values are to be shown as percentage.

public bool Percentage { get; }

Property Value

bool

RightAligned

Returns True if the contents of controls for fields using this domain must be aligned to the right.

public bool RightAligned { get; }

Property Value

bool

SecuredBlob

Returns if file system blobs are to be secured (stored in an application folder that is not directly accessible using an URL) or unsecured (stored in a sub folder of the web root).

public bool SecuredBlob { get; }

Property Value

bool

SysDomainID

Returns the SysDomainID as known in the repository.

public int SysDomainID { get; }

Property Value

int

TextBoxHeight

Returns the default height of a text box in form view.

public int TextBoxHeight { get; }

Property Value

int

TextBoxHeightList

Returns the default height of a text box in list view.

public int TextBoxHeightList { get; }

Property Value

int

TextBoxWidth

Returns the default width of a text box in form view.

public int TextBoxWidth { get; }

Property Value

int

TextBoxWidthList

Returns the default width of a text box in list view.

public int TextBoxWidthList { get; }

Property Value

int

ThousandsSeparator

Returns if the thousands for numeric values are to separated visually.

public bool ThousandsSeparator { get; }

Property Value

bool

UseDescription

Returns a boolean indicating the description is to be shown on the blob details form.

public bool UseDescription { get; }

Property Value

bool

ValidationScript

Returns the script to be used to validate a new value for this domain.

public string ValidationScript { get; }

Property Value

string

Methods

AutoResize(ref string, ref string)

This method automatically resizes an image (as provided in the binary string pBlobData) using the settings in this domain.

public void AutoResize(ref string pBlobData, ref string pFileName)

Parameters

pBlobData string

The by ref binary string containing and returning the blob data.

pFileName string

Th by ref name of the image. May be updated when converting png to jpg.