It is best practice to use FEF constants within FEF scripting to avoid typing errors and to avoid a case in which a constant value could change in future releases. The following is a list of the different types of constants and what they mean
All FEF constants are preceded by Facade.Constants, like:
Facade.Consants.Mask.HIDDEN
Constant Type | Explanation | Constant Values |
---|---|---|
Mask | A components mask determines whether the component is displayed, read-only, or hidden on the screen |
NORMAL HIDDEN READONLY |
Example
|
||
FunctionalType | The data type of a field within a design. The fields functional type will determine the fields component type; which tells the UI how to render the field. |
TEXT PICKLIST BOOLEAN DATE INTEGER DECIMAL PARTY ROOTPOINTER ATTACHMENT |
Example
|
||
FieldComponentType | The widget that a core-field component will render as. By default, this will be selected based on the field's FunctionalType, which is inferred from the data design. |
ADDRESS CHECKBOX DATETIMEPICKER FILE LOOKUP MASTERDETAILCONFLICT NUMBER PARTY POINTER PICKLIST TEXTBOX TYPEAHEAD ATTACHMENT |
Example
|
||
NavType | Determine the navigation type of a component. |
REDIRECT NEW_TAB POPOVER |
Example
|
||
PageType | Type of your page. A review page is readonly. |
REVIEW QUICK |
Example
|
||
ButtonType | Whether a core-button is a simple push button or a drop-down button menu. |
BUTTON MENU URL |
Example
|
||
ActionType | The built-in action types represent actions that FEF provides default behavior for. Default behaviors include where in the UI (if anywhere) the action appears, and what happens upon execution. Actions with no action type assigned require the designer to supply a custom execute handler. |
CREATE DOWNLOAD SAVE TRANSITION VIEW |
ActivityStatus | The status of an activity. |
CANCELED SUCCESS FAILURE |
ComponentState | All components have componentState, hiddenComponentState, and visibleComponentState attibutes set to one of these values. Represents the level of alertness for a component. RUNNING indicates that a component is fully active and responding to user interaction and model changes. FROZEN means a component is visible but is not user interaction and model changes. UNLOADED means the component is not part of the HTML DOM and is not responding to user interaction and model changes. By default, componentState is dynmically set to either hiddenComponentState or visibleComponentState depending on whether the mask is respectively HIDDEN or not. Why use componentState? For performance. It is expensive to have all components, whether on screen, to be fully active. By default, many FEF components freeze or unload themselves when not visible. This behavior can be overridden as desired to strengthen or weaken int. |
FROZEN RUNNING UNLOADED |
ConstraintPanelMode | Determines the constraint mode of a component. |
NONE BUILDER SIMPLE ADVANCED |
FormLayoutType | Determines how a form should lay out its fields. Flow form fields are laid out horizontally until the edge of the screen (or parent element) is reached or until the form's cols have been exceeded. The fields are fixed width but support a cols attribute to take up the equivalent space of multiple fields. Table form fields are laid out horizontally but only wrap to the next line when the form's cols have been exceeded. The fields have variable width, so that columns grow or shrink to fit their content and the form itself is the full width of the screen (or parent element). |
DOT_LEADER FLOW SUMMARY TABLE |
MessageType | The messageType of an activity tells the UI how to represent the activity on the screen when the activity is rendered on the UI |
ALERT ERROR WARNING INFO DEBUG |
PartyDisplayMode | PartyDisplayMode determines whether fields with FunctionalType of PARTY display in a shorthand format or long. |
INLINE LONG |
|
||
ResolveStatus | Status of a promise. ERROR indicates a resolve that resulted in a ResolverError. RESOLVING indicates a resolve in progress. RESOLVED indicates presence in the data registry. UNRESOLVED indicates absence in the data registry. |
RESOLVING ERROR RESOLVED UNRESOLVED |
TierType | The type of a certain kind of tier. A common tier in FFE is a typeahead or dropdown. FULL means the full dataset is shown, LIMITED means a purposely reduced subset of the full set of data and PARTIAL is used when full set cannot be obtained due to buffering or filtered subset |
LIMITED FULL PARTIAL |
Operator | A type of operator that is attached to a prompt; defines how a prompt will attempt to constrain a field within a constraint panel. |
BETWEEN CONTAINS EQUAL EQUAL_CASE_INSENSITIVE GREATER_THAN GREATER_THAN_OR_EQUAL IS_ONE_OF LESS_THAN LESS_THAN_OR_EQUAL NOT_EQUAL NOT_EQUAL_CASE_INSENSITIVE STARTS_WITH |