FUNCTION Deploy( const Deploy_Type, KMname, filePath, TranslationFile, AssetFolder, CssFile, deployToDomain: WideString ) : WORDBOOL

This will deploy the specified Knowledge Module (KMName) and its related Knowledge Modules into the location denoted by the filePath parameter.

The Deploy_Type parameter should be one of the following constants and is related to the deployment type covered by the user's licence.

Note: The deployToDomain parameter sets the target domain for the Javascript deployment only (webbrowser, webbrowsermob); also this parameter can be omitted when using the other deployment types.

Note: The AssetFolder and CssFile parameters only apply to the web deployment types (webbrowser, webbrowsermob and ajax), and should be passed an empty string if using the other deployment types.

VBscript Sample

...
Set api = CreateObject("xrkb.KBdesigner")
retcode = api.OpenProject("User", "", xrp_export)
retcode = api.deploy( "transaction", "Expenses", deploy_folder, "", "", "", "" )
retcode = api.CloseProject(True)
...