Class Entry
Represents a single field within an EntryGroup.
public class Entry
- Inheritance
-
Entry
- Derived
- Inherited Members
Constructors
Entry(string, EntryTypes)
Initializes a new instance of Entry.
protected Entry(string fieldName, EntryTypes type)
Parameters
fieldName
stringField Name.
type
EntryTypesUsed to override the Entry Type on unmanaged code.
Entry(string)
Initializes a new instance of Entry.
public Entry(string fieldName)
Parameters
fieldName
stringField Name.
Fields
iBaseEntry
Interface to represent the Entry on Unmanaged Code. This should be used only for inherited classes.
protected ICrmEntry iBaseEntry
Field Value
Properties
Caption
Enables you to change the caption on a Entry. You use this property only if the caption is required to be different on this particular screen only. If the caption is to be permanently changed, it should be done in Administration | Customization | <Entity> | Fields. The change is automatically reflected throughout the system.
public string Caption { get; set; }
Property Value
CaptionFamily
Enables the family of the Entry to be set. This controls what captions appear on each entry. If no CaptionFamily is set, the default "ColNames" will be used. The caption shown is the translation for the caption family (ColNames) plus the caption code (field name). You can change the caption by changing the CaptionFamily value and adding a translation for that CaptionFamily and the field name. For more information refer to the System Administrator Guide. Note that you can view a list of column names in Administration | Customization | Translations.
public string CaptionFamily { get; set; }
Property Value
CaptionPos
Enables you to re-position the captions on fields to reflect the value in the field. CaptionPositions
public CaptionPositions CaptionPos { get; set; }
Property Value
CreateScript
Enables you to enter server-side JavaScript that is executed when the entry is created. This is limited to this instance of entry.
public string CreateScript { get; set; }
Property Value
DefaultType
You use this property to set the default type of the entry. This is used in conjunction with the EntryType and DefaultValue properties. DefaultTypes
public int DefaultType { get; set; }
Property Value
DefaultValue
Specifies the default value given to the field when a new record is created. This property will only be used if the DefaultType property is set to Sage.DefaultTypes.DefaultValue (1)
public string DefaultValue { get; set; }
Property Value
EntryType
Gets the Entry Type.
public EntryTypes EntryType { get; }
Property Value
Height
The number of rows that this Entry will span when the EntryGroup is displayed.
public int Height { get; set; }
Property Value
Hidden
A Hidden entry is not displayed when the EntryGroup it is in is executed. This is useful if you want to tag an entry to an EntryGroup but do not want customers to view it.
public bool Hidden { get; set; }
Property Value
JumpAction
Action to be invoked when the entry is in view mode.
public int JumpAction { get; set; }
Property Value
JumpCustomPage
ASP file to jump when the entry is in view mode.
public string JumpCustomPage { get; set; }
Property Value
JumpEntity
Allows the field (in view mode) to be hyperlinked to an entity summary screen. Note that the entity must be relevant to the field, that is, the identity field of the entity selected must exist within the table or view on which the screen is based. In practice, this is only useful when the screen is based on a view that contains fields from multiple tables.
[Obsolete("Property not used on CRM anymore")]
public string JumpEntity { get; set; }
Property Value
JumpKey
The key that is used by this action e.g. (int)KeyList.CompanyId.
public int JumpKey { get; set; }
Property Value
MaxLength
Controls the maximum amount of characters that can be entered into an Entry when editing this entry. This does not change the size of the entry box, only the number of characters that can be entered. (Use the Size property to control the appearance of the field.)
public int MaxLength { get; set; }
Property Value
Name
Gets the name by which the field is referenced.
public string Name { get; }
Property Value
NewLine
Set if this Entry is to start a new line within the EntryGroup.
public bool NewLine { get; set; }
Property Value
OnChangeScript
Specifies the JavaScript to be executed when the value in the field is edited. This property is only applicable when the ReadOnly property is set to false.
public virtual string OnChangeScript { get; set; }
Property Value
ReadOnly
Specifies that a field is read-only. If this is set to true, the value in the field is not editable.
public bool ReadOnly { get; set; }
Property Value
Required
Specifies that a value must be entered in this field. If no value is entered a validation error is displayed.
public bool Required { get; set; }
Property Value
Size
Specifies the size of the field displayed onscreen. This is the length of the field in pixels.
public int Size { get; set; }
Property Value
ValidateScript
Enables you to set a validation script on a Entry object. You use this to enter server-side JavaScript that is executed when the entry is executed in save mode.
public string ValidateScript { get; set; }
Property Value
Width
The number of columns that this Entry will span when the EntryGroup is displayed.
public int Width { get; set; }
Property Value
Methods
~Entry()
Destructor for the Entry class.
protected ~Entry()