Class EntryGroup
Class to represent a CRM Screen.
public class EntryGroup : ComplexBox, IList<Entry>, ICollection<Entry>, IEnumerable<Entry>, IEnumerable, IDisposable
- Inheritance
-
EntryGroup
- Implements
- Inherited Members
Constructors
EntryGroup(string, string, bool)
Initializes a new instance of EntryGroup.
public EntryGroup(string screenName, string title, bool newLine)
Parameters
EntryGroup(string, string)
Initializes a new instance of EntryGroup.
public EntryGroup(string screenName, string title)
Parameters
EntryGroup(string)
Initializes a new instance of EntryGroup.
public EntryGroup(string screenName)
Parameters
screenName
stringMetadata Screen Name.
Properties
Cols
Number of columns this group should take up within HTML <TABLE> control.
public int Cols { get; set; }
Property Value
Count
Gets the number of Entries contained in the List.
public int Count { get; }
Property Value
CustomContent
Sets the Custom Content on the EntryGroup. This is extra HTML or Javascript that will be included when the EntryGroup is rendered.
public string CustomContent { get; set; }
Property Value
EntityName
Gets the Entity Name for the current EntityGroup.
public string EntityName { get; }
Property Value
getRecord
Return the current record for the EntryGroup.
public Record getRecord { get; }
Property Value
hasRecord
Return true if the EntryGroup has a record correctly set.
public bool hasRecord { get; }
Property Value
IsReadOnly
Gets a value indicating whether the EntryGroup is read-only.
public bool IsReadOnly { get; }
Property Value
this[int]
Gets or sets the Entry element at the specified index (position).
public Entry this[int index] { get; set; }
Parameters
index
intIndex.
Property Value
- Entry
Entry.
Mode
Gets or Sets the Current Mode to the EntryGroup.
public Mode Mode { get; set; }
Property Value
ModeUpdated
Returns true if the mode was updated externally.
public bool ModeUpdated { get; }
Property Value
NewLine
Specifies whether this EntryGroup appears on a new line when the group is added to DataPage.EntryGroups.
public bool NewLine { get; set; }
Property Value
Rows
Number of rows this group should take up within HTML <TABLE> control.
public int Rows { get; set; }
Property Value
Methods
Add(Entry)
Adds an Entry to the List.
public void Add(Entry item)
Parameters
item
EntryEntry.
Clear()
Removes all Entry from the List.
public void Clear()
Contains(Entry)
Determines whether the List contains a specific Entry.
public bool Contains(Entry item)
Parameters
item
EntryEntry.
Returns
- bool
True if the Entry is found.
CopyTo(Entry[], int)
Copies the Entrys to an Array, starting at a particular Array index.
public void CopyTo(Entry[] array, int arrayIndex)
Parameters
array
Entry[]One-dimensional Array that is the destination.
arrayIndex
intIndex in array at which copying begins.
CreateEntry(string)
Creates and adds a new field to this EntryGroup.
[Obsolete("Use: New Entry(fieldName); EntryGroup.Add(Entry);")]
public Entry CreateEntry(string fieldName)
Parameters
fieldName
stringName of the field to add. If this is an existing field within CRM then the field will be created with the properties of that field, otherwise it will be a "Blank" field, and the entry type and other controlling properties must be set explicitly.
Returns
- Entry
Entry object representing the field just added.
CreateEntrySelect(string)
This method is obsolete.
[Obsolete("Use: New EntrySelect(fieldName); EntryGroup.Add(EntrySelect);")]
public EntrySelect CreateEntrySelect(string fieldName)
Parameters
fieldName
string
Returns
Examples
Use this code instead:
EntryGroup screenCompany = new EntryGroup("CompanyBoxLong");
EntrySelect es = New EntrySelect("comp_phonenumber")
screenCompany.Add(es);
CreateEntrySelectTable(string)
This method is obsolete. See EntryGroup.CreateEntrySelect.
[Obsolete("Use: New EntrySelectTable(fieldName); EntryGroup.Add(EntrySelectTable);")]
public EntrySelectTable CreateEntrySelectTable(string fieldName)
Parameters
fieldName
string
Returns
Dispose()
public void Dispose()
Fill(Entity)
Fills the EntryGroup with a value from Entity.
public void Fill(Entity entityObject)
Parameters
Fill(Record)
Fills the EntryGroup with a value from Record.
public void Fill(Record recordObject)
Parameters
Fill(DataSource)
Fills the EntryGroup with a value from FromContent or FromDefault.
public void Fill(DataSource source)
Parameters
source
DataSource
FillEntityFromContent(Record)
Enters values from a screen into an Entity object.
[Obsolete("Use the method FILL")]
public void FillEntityFromContent(Record recordObject)
Parameters
recordObject
Record
~EntryGroup()
Destructor class for the EntryGroup.
protected ~EntryGroup()
GetEntry(string)
Returns an entry object, representing one of the fields within the screen.
public Entry GetEntry(string fieldName)
Parameters
fieldName
stringField name of one of the fields within the screen.
Returns
- Entry
Entry object.
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator<Entry> GetEnumerator()
Returns
GetHtmlInEditMode()
Returns HTML to show the screen in edit mode.
public string GetHtmlInEditMode()
Returns
- string
HTML string.
GetHtmlInEditMode(Entity)
Returns HTML to show the screen in edit mode, getting values from the Entity Object.
public string GetHtmlInEditMode(Entity entityObject)
Parameters
entityObject
EntityEntity object pointing at a row.
Returns
- string
HTML string.
GetHtmlInEditMode(Record)
Returns HTML to show the screen in edit mode, getting values from the Record Object.
public string GetHtmlInEditMode(Record recordObject)
Parameters
recordObject
RecordRecord object to render the HTML for.
Returns
- string
HTML string.
GetHtmlInEditMode(DataSource)
Returns HTML to show the screen in edit mode.
public string GetHtmlInEditMode(DataSource source)
Parameters
source
DataSourceDataSource source.
Returns
- string
HTML string.
GetHtmlInViewMode(Entity)
Returns HTML to show screen in View mode, getting values from the Entity object.
public string GetHtmlInViewMode(Entity entityObject)
Parameters
entityObject
EntityEntity Object pointing at a record.
Returns
- string
HTML string.
GetHtmlInViewMode(Record)
Returns HTML to show screen in View mode, getting values from entity object.
public string GetHtmlInViewMode(Record recordObject)
Parameters
recordObject
RecordEntity Object pointing at a record.
Returns
- string
HTML string.
GetHtmlInViewMode(DataSource)
Returns HTML to show screen in View mode.
public string GetHtmlInViewMode(DataSource source)
Parameters
source
DataSourceDataSource source.
Returns
- string
HTML string.
GetSqlForSearch()
Generates SQL for searching, based on values filled in on screen.
public string GetSqlForSearch()
Returns
- string
SQL where clause.
HtmlBody()
Returns HTML to show a screen.
protected override string HtmlBody()
Returns
- string
HTML String.
IndexOf(Entry)
Determines the index (position) of a specific Entry in the List.
public int IndexOf(Entry item)
Parameters
item
EntryEntry.
Returns
- int
Index of Entry.
Insert(int, Entry)
Inserts an Entry to the List at the specified index (position).
public void Insert(int index, Entry item)
Parameters
Remove(Entry)
Removes the first occurrence of a Entry from the List.
public bool Remove(Entry item)
Parameters
item
EntryEntry.
Returns
- bool
True if successful.
RemoveAt(int)
Removes the Entry item at the specified index (position).
public void RemoveAt(int index)
Parameters
index
intIndex
RemoveEntry(string)
Obsolete. Use Sage.CRM.Controls.EntryGroup.RemoveAt or Sage.CRM.Controls.EntryGroup.Remove instead.
[Obsolete("Use the method Remove or RemoveAt")]
public bool RemoveEntry(string fieldName)
Parameters
fieldName
string
Returns
Validate()
Validates the values on screen for each of the entrys in the screen.
public bool Validate()
Returns
- bool
True if successfull.