...
Example
...
Code Block | ||
---|---|---|
| ||
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) | ||||||
---|---|---|---|---|---|---|
|
...