Click or drag to resize
FormHelper Class
Class providing form helper methods.
Inheritance Hierarchy
SystemObject
  CMS.FormEngineFormHelper

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 10.0.0
Syntax
C#
public static class FormHelper

The FormHelper type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberCORE
Constant used to determine form field info which doesn't contain before/after definition of system field.
Public fieldStatic memberFORM_PREFIX
Resolver name prefix for forms/classes - 'form.'
Public fieldStatic memberFORMDEFINITION_PREFIX
Resolver name prefix for other objects with form definition - 'formdefinition.'
Top
Methods
  NameDescription
Public methodStatic memberAddFieldMacroRules
Adds macro rules values to given XmlNode.
Public methodStatic memberAddLatestVersionAttribute
Adds version attribute with latest version as value to xmlNode.
Public methodStatic memberBizFormFilesFolder
Gets custom on-line form file folder path.
Public methodStatic memberClearFormControlParameters
Clears cached form control parameters.
Public methodStatic memberClearFormInfos
Clears cached FormInfo objects.
Public methodStatic memberColumnExistsInView
Checks if column name is unique in system tables which are joined with given table into view.
Public methodStatic memberCombineFormDefinitions
Combines two form definitions together. Fields from second definition are added at the end of first definition.
Public methodStatic memberConvertValidationFromAttributesToRules
Converts validation from field attributes to macro rules.
Public methodStatic memberEnsureDefaultCategory
Ensures category at the beginning of the form definition.
Public methodStatic memberEnsureDefaultValues
Ensures the default class values to the Data container for required fields (not allowing empty value) without a value.
Public methodStatic memberGetAvailableControlTypes
Returns DataSet with available form control types for specified column data type and field editor controls.
Public methodStatic memberGetBasicFormDefinition
Returns basic form definition of the table with primary key only.
Public methodStatic memberGetBizFormFilesFolderPath
Returns BizForm files folder physical path according to 'CMSBizFormFilesFolder' settings key.
Public methodStatic memberGetDataTypeColumn
Returns column name of FormUserControlInfo class for given data type.
Public methodStatic memberGetDataTypeColumnForGroup
Returns column name of FormUserControlInfo class for given data type group.
Public methodStatic memberGetDataTypeWhereCondition
Gets the where condition for Form controls for the given data type
Public methodStatic memberGetDateTimeValueInSystemCulture
Gets date-time value in system (en) culture format.
Public methodStatic memberGetDateValueInSystemCulture
Gets date value in system (en) culture format.
Public methodStatic memberGetDoubleValueInSystemCulture
Gets double value in system (en) culture format.
Public methodStatic memberGetFieldControlTypesWithUserControls
Returns dataset with control types and user controls.
Public methodStatic memberGetFilePhysicalPath
Gets path to the file in file system.
Public methodStatic memberGetFormControlParameters
Returns cached form control parameters.
Public methodStatic memberGetFormControlSettingsFromXML
Gets FormFieldInfo with initialized settings (Settings and SettingMacroTable properties) from specified XML representation.
Public methodStatic memberGetFormControlSettingsXml
Gets settings XML representation from specified FormFieldInfo.
Public methodStatic memberGetFormDefinitionDifference
Returns XML differences between original and alternative form definitions (i.e. returns only fields that differs from each other)
Public methodStatic memberGetFormFieldControlType
Converts string to FormFieldControlType.
Public methodStatic memberGetFormFieldControlTypeString
Converts FormFieldControlType to string.
Public methodStatic memberGetFormFieldDataType
Returns form field data type from input table column data.
Public methodStatic memberGetFormFieldDefaultControlType(String, FieldEditorControlsEnum)
Returns default form field control type according to the form field data type. If the control type of the configured control is not allowed, returns null.
Public methodStatic memberGetFormFieldDefaultControlType(String, Boolean)
Returns default form field control type according to the form field data type.
Public methodStatic memberGetFormFieldInfo
Returns initialized FormFieldInfo structure according to the specified table column schema.
Public methodStatic memberGetFormFieldsWithDefaultValue
Returns "alternative form fields definition" containing only specified attribute and value for all fields E.g. Set visible false for all fields in alt. form.
Public methodStatic memberGetFormInfo
Returns FormInfo object for specified class name or alternative name. Method loops through supplied class list and returns first object existing. If alternative name is specified then it is merged with default class and then returned If coupled class exists for given alternative form then it is merged as well. If alternative form info not found then its default class is returned. You can also merge two forms in the result by using the + operator between names, such as "customtable.sampletable.filter+customtable.sampletable.extra"
Public methodStatic memberGetFormUserControlsForDataType
Returns DataSet with FormUserControlInfo objects that supports specified data type.
Public methodStatic memberGetFullFileName
Returns full file name ([name.extension] if extension is specified) or ([name] only if extension is not specified).
Public methodStatic memberGetGuidFileName
Returns file name in format [guid].[extension].
Public methodStatic memberGetInheritedCategories
Gets the table of the categories that are inherited.
Public methodStatic memberGetInheritedFields
Gets the table of the fields that are inherited
Public methodStatic memberGetOriginalFileName
Returns file name in format [OriginalFileName].[extension].
Public methodStatic memberGetPropertyMacroTransformation
Returns a transformation action. If given macro table contains key passed to the action (second action parameter), it replaces current value (third action parameter) in the element passed to the action (first action parameter) and adds "ismacro" attribute to the element.
Public methodStatic memberGetValidationRuleName
Returns validation rule name.
Public methodStatic memberGetValidationRuleParameter
Returns value of parameter with given name.
Public methodStatic memberGetWhereConditionForDataType
Gets WHERE condition to select controls for given data type and control type (on-line forms, page types, etc).
Public methodStatic memberHasFileUploadControl
Returns if field's control is of file type.
Public methodStatic memberHasListControl
Returns true if field uses list control (DropDownList, RadioButtonsList, ...)
Public methodStatic memberHideFieldInAlternativeForms
Hides given field in alternative forms belonging to given class if hiding new fields is enabled.
Public methodStatic memberInitTable
Initializes given dictionary.
Public methodStatic memberIsFieldOfType
Returns true if FormFieldInfo is of specified type.
Public methodStatic memberIsValidControl
Determines whether given control is valid for given controls enum.
Public methodStatic memberLoadDefaultValues
Loads the default class values to the Data container.
Public methodStatic memberMergeFormDefinitions
Merges original and alternative form definitions and returns the result.
Public methodStatic memberMergeVisibility
Merges original FormInfo and alternative FormInfos and returns the resulting FormInfo.
Public methodStatic memberRemoveCategoryFromAlternativeDefinition
Removes category from alternative definition and keeps order of other items.
Public methodStatic memberRemoveFieldFromAlternativeDefinition
Removes field from alternative definition and keeps order of other items.
Public methodStatic memberRemoveFieldFromAlternativeForms
Removes field from alternative forms belonging to given class.
Public methodStatic memberRemoveInheritance
Removes the inheritance from the given class.
Public methodStatic memberRemoveInheritedFields
Removes the inherited fields from the given form info.
Public methodStatic memberRenameFieldInAlternativeFormLayout
Changes field name in alternative form layout definition.
Public methodStatic memberRenameFieldInFormLayout
Changes field name in form layout definition.
Public methodStatic memberUpdateInheritedClass
Updates the class inherited from the given class.
Public methodStatic memberUpdateInheritedClasses
Updates the classes inherited from the given class.
Public methodStatic memberUseSiteSpecificCustomFolder
Indicates if site specific custom folder should be used for storing on-line form files.
Top
See Also