Versions Compared

Key

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

...

Example

...

Code Block
languagecpp
  FUNCTION copyModel(sourceModelId : GENERIC) : GENERIC;
    LOCAL
      targetModelId           : GENERIC;
      controlId               : GENERIC;
      targetModelRepositoryId : GENERIC;
    END_LOCAL;
    ON_ERROR_DO;
      xpxPrintf('\nError.');
      xpxThrow;
    END_ON_ERROR_DO;
    
    targetModelRepositoryId := xpfGetRepository('DataRepository');
    targetModelId := xpfCopyModel(sourceModelId, targetModelRepositoryId, 'NAME_OF_COPIED_MODEL');
    xpxPrintf('\ntargetModelId : %lu',targetModelId);
    controlId :=  xpfGetModel(targetModelRepositoryId,'NAME_OF_COPIED_MODEL');
    xpxPrintf('\ncontrolId : %lu',controlId);
    IF(controlId :<>: targetModelId) THEN
      xpxThrow;
    END_IF;
    
    RETURN(targetModelId);
  END_FUNCTION;Missing example

 

See also

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

...