Versions Compared

Key

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

...

Code Block
languagecpp
  FUNCTION createModelgetMemberCount(sourceModelName:modelId STRING) : GENERIC; entityName : STRING) : LOCALINTEGER;
    LOCAL
 targetModelId     extentId      : GENERIC;
      controlIdmembers               : GENERICINTEGER;
    END_LOCAL;
      ON_ERROR_DO;
      xpxPrintf('\nError.');
      xpxThrow;
    END_ON_ERROR_DO;
      
  targetModelId := xpfCopyModelBNxpxGetEntityExtentBN('DataRepository', sourceModelName, 'DataRepository', 'NAME_OF_COPIED_MODEL'modelId,entityName,extentId); 
   xpxPrintf('\ntargetModelId : %lu',targetModelId);
    controlId  members :=  xpfGetModelBN('DataRepository','NAME_OF_COPIED_MODEL'xpfGetMemberCount(extentId);
    xpxPrintf('\ncontrolIdn%d Members :in %lumodel.',controlId);
    IF(controlId :<>: targetModelId) THEN
      xpxThrowmembers);
    END_IF;  
       RETURN(targetModelIdmembers);
  END_FUNCTION;

 

See also

...