FormHelper Class |
Namespace: CMS.FormEngine
public static class FormHelper
The FormHelper type exposes the following members.
Name | Description | |
---|---|---|
CORE |
Constant used to determine form field info which doesn't contain before/after definition of system field.
| |
FORM_PREFIX |
Resolver name prefix for forms/classes - 'form.'
| |
FORMDEFINITION_PREFIX |
Resolver name prefix for other objects with form definition - 'formdefinition.'
|
Name | Description | |
---|---|---|
AddFieldMacroRules |
Adds macro rules values to given XmlNode.
| |
BizFormFilesFolder |
Gets custom on-line form file folder path.
| |
ClearFormControlParameters |
Clears cached form control parameters.
| |
ClearFormInfos |
Clears cached FormInfo objects.
| |
CombineFormDefinitions |
Combines two form definitions together. Fields from second definition are added at the end of first definition.
| |
ConvertValidationFromAttributesToRules |
Converts validation from field attributes to macro rules.
| |
EnsureDefaultCategory |
Ensures category at the beginning of the form definition.
| |
EnsureDefaultValues |
Ensures the default class values to the Data container for required fields (not allowing empty value) without a value.
| |
GetBasicFormDefinition |
Returns basic form definition of the table with primary key only.
| |
GetBizFormFilesFolderPath |
Returns BizForm files folder physical path according to 'CMSBizFormFilesFolder' settings key.
| |
GetBizFormTempFilesFolderPath |
Gets BizForm temporary files folder physical path based on GetTempFilesRootFolderPath(String).
| |
GetDataTypeColumn |
Returns column name of FormUserControlInfo class for given data type.
| |
GetDataTypeColumnForGroup |
Returns column name of FormUserControlInfo class for given data type group.
| |
GetDataTypeWhereCondition |
Gets the where condition for Form controls for the given data type
| |
GetDateTimeValueInSystemCulture |
Gets date-time value in system (en) culture format.
| |
GetDateValueInSystemCulture |
Gets date value in system (en) culture format.
| |
GetDecimalValueInSystemCulture |
Gets decimal value in system (en) culture format.
| |
GetDoubleValueInSystemCulture |
Gets double value in system (en) culture format.
| |
GetFilePhysicalPath |
Gets path to the file in file system.
| |
GetFormControlParameters |
Returns cached form control parameters.
| |
GetFormControlSettingsFromXML |
Gets FormFieldInfo with initialized settings (Settings and SettingMacroTable properties) from specified XML representation.
| |
GetFormControlSettingsXml |
Gets settings XML representation from specified FormFieldInfo.
| |
GetFormDefinitionDifference |
Returns XML differences between original and alternative form definitions
(i.e. returns only fields that differs from each other)
| |
GetFormFieldDefaultControlName |
Returns default form field control type according to fieldType.
If controlType of the configured control is not allowed, returns null.
| |
GetFormFieldInfo |
Returns initialized FormFieldInfo structure according to the specified table column schema.
| |
GetFormFieldsWithDefaultValue |
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.
| |
GetFormInfo |
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"
| |
GetGuidFileName |
Returns file name in format [guid].[extension].
| |
GetOriginalFileName |
Returns file name in format [OriginalFileName].[extension].
| |
GetPropertyMacroTransformation |
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.
| |
GetValidationRuleName |
Returns validation rule name.
| |
GetValidationRuleParameter |
Returns value of parameter with given name.
| |
GetWhereConditionForDataType |
Gets WHERE condition to select controls for given data type and control type (on-line forms, page types, etc).
| |
HasFileUploadControl |
Returns if field's control is of file type.
| |
HideFieldInAlternativeForms |
Hides given field in alternative forms belonging to given class if hiding new fields is enabled.
| |
LoadDefaultValues |
Loads the default class values to the Data container.
| |
MergeFormDefinitions |
Merges original and alternative form definitions and returns the result.
| |
RemoveCategoryFromAlternativeDefinition |
Removes category from alternative definition and keeps order of other items.
| |
RemoveFieldFromAlternativeDefinition |
Removes field from alternative definition and keeps order of other items.
| |
RemoveFieldFromAlternativeForms |
Removes field from alternative forms belonging to given class.
| |
RemoveInheritance |
Removes the inheritance from the given class.
| |
RenameFieldInAlternativeFormLayout |
Changes field name in alternative form layout definition.
| |
RenameFieldInFormLayout |
Changes field name in form layout definition.
| |
UpdateInheritedClass |
Updates the class inherited from the given class.
| |
UpdateInheritedClasses |
Updates the classes inherited from the given class.
| |
UseSiteSpecificCustomFolder |
Indicates if site specific custom folder should be used for storing on-line form files.
|