TrkImportFromXML
Return to Introduction  Previous page  Next page
Imports issues that have previously been exported or have been created by other tools.

Delphi (TrkIntf.pas)

function TrkImportFromXML( FileName: String; CreateUsers, CreateProjects, AsNew: Boolean; var ErrMsg: String ): Integer;  

Parameters

Name
Description
FileName
The name of the XML file
CreateUsers
If this value is set to True then any users not already existing in the target repository will be created.
CreateProjects
If this value is set to True then any Projects not already existing in the target repository will be created.
AsNew
If this is set to True, the import routine will ignore the ID of the source issue and create a new Issue in the repository
ErrMsg
Returns a string stating the reason the Import failed


Return Value

Err_OK if successful or an error code indicating the error.

Remarks

Unless AsNew is set to True, the import routine will try and match the ID's of the issues being imported to existing Issues in the repository. If you are not updating existing Issues, leave the ID field of the Issue being imported blank.

Prior to importing any Issues, the routine will validate the XML being imported. Any error will cause the import to be abandoned and information about the reason will be returned in ErrMsg.

Exported

function TCDTrkImportFromXML( pFile: PChar; CreateUsers, CreateProjects, AsNew: Boolean; const pErrMsg: PChar ): Integer; stdcall;  


 


© 1995-2018 MCN Software