a5w_publish Function

Syntax

L A5w_Publish(C projName ,C profile [,N Publish_Type [,C files [,L flagOptimizePublishing [,L flagPublishDatabaseALB [,L flagPublishSecurityTables [,L flagPublishSupportFiles [,L flagCreateAex [,L flagPublishSelectedOnly [,L flagSuppressFilesToBePublishedDialog [,* iisProviderPublish [,L FlagCheckSecurityBeforePublish ]]]]]]]]]]])

Arguments

projNameCharacter

The name of the Web Project you want to publish. If you leave this blank the last selected project is used.

profileCharacter

Name of the publishing profile to use. If you leave this blank "Local Webroot" is used.

Publish_TypeNumeric

Default = 1. 1 = all files in project, 2 = selected files (specified by the 'files' property). Note: if you set to 1, the 'flagPublishSupportFiles' property is set to .t.

filesCharacter

Default = "" CR-LF delimited list of files to publish. Must set publish_type to 2. File names are relative. e.g. 'MyUXComponent.a5wcmp'.

flagOptimizePublishingLogical

Default = .T. Specifies if the publishing history should be checked to see if the file has been previously published. If .t., then only files that have not been published since they were last changed are published.

flagPublishDatabaseALBLogical

Default = .F. 'Workspace' SQL reports are stored in the Workspace files (.alb, .alm, .alx). If you are using Workspace SQL reports (as opposed to Project reports), you can specify if the Workspace SQL reports should be published.

flagPublishSecurityTablesLogical

Default = .F. Specify if security tables (containing user and group settings) should be published.

flagPublishSupportFilesLogical

Default = .T. Only applies if publish_type is 2. Support files include CSS and Javascript files

flagCreateAexLogical

Default = .F. If you have global functions defined as L = default .f.

flagPublishSelectedOnlyLogical

Default = .F.

flagSuppressFilesToBePublishedDialogLogical

Default = .F.

iisProviderPublishPointer

Default = null_value()

FlagCheckSecurityBeforePublishLogical

Default = .F.

additionalOptionsPointer

Default = null_value()

Returns

ResultLogical

Returns .t. if successful, otherwise .f.

Description

Publish a web project