new cdn_contact_ns()#
Mixes In:

Contacts directory

Members

attrsstatic #

Attributes defined in metadata. This property not exist in real life and added just for help

entity: UBEntityinstance #

Reference to entity metadata

Methods

getSubjectsContacts(subjects: Number, contactCode: String)→Array<string>instance#

Search for subjects contact values.

Arguments info:

  • subjects: Number

    Either subject ID or array of subject IDs to search

  • contactCode: String

    Contact type code ('phone', 'email', e.t.c - one of cdn_contacttype.code value

addNew(ctx: ubMethodParams)instance#

Create record with filled default values and return it to caller. Newly created record is not inserted to database. For inserting record to the database insert method should be called

delete(ctx: ubMethodParams)instance#

Delete data

Arguments info:

insert(ctx: ubMethodParams)instance#

Insert new row to the entity.

Arguments info:

  • ctx: ubMethodParams
    • mParams: Object

      Object keys is entity attributes names, key values is a value to be inserted

select(ctx: ubMethodParams)instance#

Read entity data

Arguments info:

update(ctx: ubMethodParams)instance#

Update data

Arguments info:

  • ctx: ubMethodParams
    • mParams: Object

      Object keys is entity attributes names, key values is a value to be inserted

    • mParams: number

      element ID to be updated

  • ctx.mParams.execParams: Object
    • mParams: number

      element ID to be updated

    Object keys is entity attributes names, key values is a value to be inserted