Interface IFormProvider
Contains methods for forms and their fields retrieval.
[Obsolete("This interface was not intented for a public use and will be removed in the next version.")]
public interface IFormProvider
- Extension Methods
Methods
GetFormComponents(BizFormInfo, BizFormComponentContext)
Gets a list of form components as configured in bizFormInfo.
List<FormComponent> GetFormComponents(BizFormInfo bizFormInfo, BizFormComponentContext bizFormComponentContext = null)
Parameters
bizFormInfoBizFormInfoBiz form for which to return a list of corresponding form components.
bizFormComponentContextBizFormComponentContextBiz form component context, which is propagated into created components. If FormInfo is null, it is set to
bizFormInfo.
Returns
- List<FormComponent>
Returns a list of form components.
Exceptions
- ArgumentNullException
Thrown when
bizFormInfois null.
SetFormData(BizFormInfo, List<FormComponent>, Guid?)
Sets data of a form represented by a list of its components.
BizFormItem SetFormData(BizFormInfo bizFormInfo, List<FormComponent> formComponents, Guid? contactGuid)
Parameters
bizFormInfoBizFormInfoBiz form whose data are to be set.
formComponentsList<FormComponent>Form components containing values to be set.
contactGuidGuid?Guid of current contact, can be null.
Returns
- BizFormItem
Returns the biz form item set.
Exceptions
- ArgumentNullException
Thrown when
bizFormInfoorformComponentsis null.
UpdateFormData(BizFormInfo, int, List<FormComponent>, Guid?)
Updates form data of already existing BizFormItem.
BizFormItem UpdateFormData(BizFormInfo bizFormInfo, int bizFormItemId, List<FormComponent> formComponents, Guid? contactGuid)
Parameters
bizFormInfoBizFormInfoForm to be updated.
bizFormItemIdintIdentifier of form record to be updated.
formComponentsList<FormComponent>Form components containing values to be set.
contactGuidGuid?Guid of current contact, can be null.
Returns
- BizFormItem
Returns the updated biz form item.
Exceptions
- ArgumentNullException
Thrown when
bizFormInfoorformComponentsis null.- ArgumentOutOfRangeException
Thrown when
bizFormItemIddoes not specify an existing BizFormItem.