SchemeService

Hierarchy

  • SchemeService

Properties

Readonly application

App metadata.

const appScheme = await System.scheme.application.get( 'clients', 'crm');
if (!appScheme) { 
    throw new Error('Application not  found'); 
} 
const appName = appScheme.name; 
if (!appScheme.fields) { 
    throw new Error('Application fields not found'); 
} 
const isFieldOfType =  System.scheme.field.isFieldOfType; 
for (const field of appScheme.fields) {  
   if (!field) { 
       continue; 
   } 
   if (isFieldOfType(field,  FieldSchemeType.ENUM)) { 
       const enumValues = field.data?.enumItems  ?? []; 
       // Working with enumValues 
   } 
} 

Readonly field

Field metadata.

Readonly namespace

Workspace metadata.

Readonly page

Page metadata.