Module: alfresco/services/FormsRuntimeService

alfresco/services/FormsRuntimeService

IMPORTANT NOTE: This service is not fully complete yet and does not guarantee full support for the
rendering all configured forms defined in XML for the forms runtime. It requires the
"aikau-forms-runtime-support" JAR file to be available in the "share/WEB-INF/lib" folder and it will
only work on Share. This has been made available early to for the purposes of collaborative development
with the Alfresco Community.

Extends

Mixes In

Members

_loadedMimeTypes :object[]

This will be populated with MIME type options the first time the
"/org/alfresco/components/form/controls/mimetype.ftl" is mapped to a
formcontrol and used. It prevents multiple XHR for data that is unlikely to
change unnecessary.

i18nRequirements :object[]

Type:

propertyNameMapping :object

This has been added to support the slightly unsual scenarios where the configured
parameter name in the form is not the parameter name that should be substitued. This
was originally added to support the case of "Advanced Search" forms where the
"prop_cm_modified" parameter name should be modified to be "prop_cm_modified-date-range"

Parameters:

getColumnsForControlRow() → {number|null}

Returns the number of columns that should be used for the
ControlRow for the supplied structure. The
"message" attribute in the structure contains the name of a template that can
be mapped to a number of controls.

Parameters:

onMimeTypesRequest(payload)

Handles requests to load the available MIME types to display as
form control options. If the
MIME types have already been loaded the previously loaded values will be returned
by called publishMimeTypeOptions.