Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The xpfGetEntity function returns the instanceId of the entity_definition instance of the specified entity; The entity_definition instance is located in the dictionary model of the actual Express schema in EDMdatabase. An entity_definition is uniquely defined by the arguments modelId and entityName. The instanceId of the actual entity_definition instance is returned in the entityId argument.

Arguments

...

TypeNameComment
GENERICmodelIdId of the model within the EDMdatabse
STRINGentityNameThe name of the entity

Return Value

...

 

TypeNameComment
GENERICentityIdThe instanceId of the actual entity_definition instance

Options

...

 

Example

...

Code Block
languagecpp
<Missing Example>  FUNCTION getEntity(modelId : GENERIC; entityName : STRING) : GENERIC;
    LOCAL
      entityId : GENERIC;
      name     : STRING;
    END_LOCAL;
    ON_ERROR_DO;
      xpxPrintf('\nError.');
      xpxThrow;
    END_ON_ERROR_DO;
    
    entityId := xpfGetEntity(modelId,entityName);
    xpxPrintf('\nentiyId : %lu',entityId); 
    name := entityId.name;
    xpxPrintf('\nEntity name : %s',name); 
    IF(name <> entityName) THEN
      xpxThrow;
    END_IF;
    
    RETURN(entityId);
  END_FUNCTION;

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"

...