Click or drag to resize
BizFormHelperCreateInternal Method

Creates a new biz form by creating the underlying database table and setting the corresponding BizFormInfo and DataClassInfo. The database table name is prefixed using GetFormTablePrefix(String) and processed by GetFullTableName(TableManager, String, String) which truncates excessive table names.

If formName is not specified or its value equals CODENAME_AUTOMATIC, a new code name is created based on display name.

The form name is sanitized via GetIdentifier(Object). The form name is used as table name if tableName is not specified or its value equals to CODENAME_AUTOMATIC.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax
C#
protected virtual BizFormInfo CreateInternal(
	string formDisplayName,
	string formName,
	string tableName,
	SiteInfo siteInfo
)

Parameters

formDisplayName
Type: SystemString
Display name of the form.
formName
Type: SystemString
Name of the form, or null.
tableName
Type: SystemString
Table name to store form data, or null.
siteInfo
Type: CMS.SiteProviderSiteInfo
Site of the form.

Return Value

Type: BizFormInfo
Returns the new biz form.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formDisplayName or siteInfo is null.
ArgumentExceptionThrown when formDisplayName is an empty string.
BizFormTableNameNotUniqueExceptionThrown when biz form table of specified name already exists.
BizFormExceptionThrown when an exception during database table creation, BizFormInfo creation or DataClassInfo creation occurs. See the inner exception for details.
Remarks
The resulting BizFormInfo has FormEmailAttachUploadedDocs and FormLogActivity enabled by default.
See Also