JavaScript Application Development API for Oracle Visual Builder Cloud Service - Classic Applications

Class: viewmodel/js/api/ArchetypeType

Lists types of ABCS archetypes.

Type defines archetype's behavior and the set of use-cases it solves. For example ArchetypeType.COLLECTION is the type of an archetype used to work with collections, querying data or removing arbitrary records while ArchetypeType.ENTITY_DETAIL defines archetype used to solve use-cases related to a single-record form.

To get an archetype's type use Archetype.getType.

Version:
  • 16.3.5
Source:
Example

Find all archetypes on a page working with collections

var archetypes = pageViewModel.Archetypes;
for (var archetype in archetypes) {
    if (archetype.getType() === ArchetypeType.COLLECTION) {
        console.log('Found page collection archetype: ' + archetype.getId());
    }
}

Members

(static, constant) COLLECTION :String

stable API

Represents viewmodel support (Archetype) for use cases related to display of and work with collection of records.

Type:
  • String
Version:
  • 16.3.5
Source:
See:

(static, constant) ENTITY_DETAIL :String

stable API

Represents viewmodel support (Archetype) for both new record creation and existing record modification, in other words for a form related use-cases.

Type:
  • String
Version:
  • 16.3.5
Source:
See: