Skip navigation FileNet logo
  Open Client Developer's Guide
  Search  |  Index  |  Glossary   |  
Open menu Overview
Close menu Open Client Architecture
  Project Directory Structure
  Open menu Developing ASPX Pages
  Close menu User Interface Controls
    Open Client Guidelines
    XML / Serialized XML Objects
    Control Factory
  Open menu Data Provider
Open menu Developing for Process
Open menu Error and Exception Handling
Open menu Customizing the Framework
Globalization / Localization
Open menu General Information
   

Control Factory

The Control Factory controls are used to provide display, editing, and validation functionalities for low-level user interface components. These controls are composite user controls that encapsulate and combine the functionality of simpler user interface components, such as property values. In addition to the basic UI behavior, Control Factory controls also provide the following settings, which can be applied to the encapsulated user inteface components:

Display

Make the component readonly or editable

Editing

Supply input for the component, identify a specific choice list for selecting within the component, provide a date picker for the component

Validation

Specify that the user-supplied input data for the component is required, implement range checking for the component, include regular expression pattern matching for the component

Control Factory controls are loaded using the LoadControl() procedure, and then added to the desired page or control. For example, use the following code to load a float user control:

Dim ctrl as FnFloatUC = CType(LoadControl("ControlFactory/FnFloatUC.ascx"),FnFloatUC)

This code configures the float user control to accept only floating point number input:

ctrl.ValidationExpression = "^\s*([-\+])?(\d+)?(\.(\d+)?)?(E([-\+])?\d{1,2})?\s*$"

Valid input values would include numbers such as 1.2, +1.23, and -1.23E+01.

The following table lists the available Control Factory controls.

Single-Value Controls Multi-Value Controls

FnTextBox
FnFloatUC
FnDateTimeUC
FnNumericUC
FnCheckBoxUC
FnFileSelectUC
FnComboBoxUC
FnListBoxUC
FnIndexedDDLUC
FnSpinnerUC

FnMultiLineTextBoxUC
FnMultiValueEditDateTimeUC
FnMultiValueNumericUC
FnMultiValueEditStringUC
FnMultiValueShowUC