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, String). The form name is used as table name if tableName is not specified or its value equals to CODENAME_AUTOMATIC.
Namespace: CMS.OnlineForms
protected virtual BizFormInfo CreateInternal( string formDisplayName, string formName, string tableName, SiteInfo siteInfo )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when formDisplayName or siteInfo is null. |
ArgumentException | Thrown when formDisplayName is an empty string. |
BizFormTableNameNotUniqueException | Thrown when biz form table of specified name already exists. |
BizFormException | Thrown when an exception during database table creation, BizFormInfo creation or DataClassInfo creation occurs. See the inner exception for details. |