AddEntry(EntryName, Position, Newline)

Enables new entries to be added dynamically to EntryGroups. The changes only apply to the ASP page in which they are used.

Parameters
  • EntryName (required). Specifies the new entry to be added. The entry can be passed in as the field name or an existing EntryBlock. In any case, the field must be relevant to the existing EntryGroup block. It must exist in the table on which the EntryGroup block is based.
  • Position (optional). Specifies the position in the group at which to add the entry.
    Possible values:
    • <a positive integer>. Specifies the index of the position at which to add the entry.
    • 0. Adds the entry to the first position in the group.
    • -1 (default). Adds the entry to the last position in the group.
  • NewLine (optional). Specifies whether to show the entry on a new line.
    Possible values:
    • true (default). Shows the entry on a new line.
    • false. Shows the entry on the same line.
Return value

CRMEntryBlock object

Examples

var EntryGroup;
EntryGroup = CRM.GetBlock("personboxlong");
EntryGroup.AddEntry("pers_faxnumber", 0, false);
EntryGroup.AddEntry("pers_phonenumber", 0, false);
CRM.AddContent(EntryGroup.Execute());
Response.Write(CRM.GetPage());

Adds the pers_faxnumber and pers_phonenumber fields to the start of the entry group.