You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The <rem> tag adds model attributes to a form. The use case is when the administrator needs to extend a record form in the agent interface. The tag must be specified in the Template field of the widget.

The following attributes are applicable:

AttributeTypeMandatoryDescription
isUserScriptsBooleanNThis attribute allows enabling client scripts execution. The default value is 'true'.
isPortalBooleanNThis attribute allows declaring that this widget should be displayed on the portal.
modelIdStringNThis attribute allows specifying RE model ID.
recordIdStringNThis attribute allows specifying an ID of an existing record to extend.
styleStringN

This attribute specifies the display settings (size, font, color, etc.) of the widget elements using the CSS syntax.

tableNameStringYThis attribute allows specifying a table containing the extending record.
rem
<rem modelId="{data.model_id}" tableName="{data.table_name}" recordId ="{data.record_id}" />
( () => {
    window.s_widget_custom = window.s_widget_custom || {};
    const modelId = new URLSearchParams(window.location.search).get('model_id'); // Getting model id from URL
    //Setting model from model_id URL parameter so new record knows from which model to add attributes
    s_widget.setFieldValue('model_id', modelId);
    // Setting table name and record ID of existing record in order to find a model
    s_widget.setFieldValue('table_name', window.s_form.getTableName());
    s_widget.setFieldValue('record_id', window.s_form.getUniqueValue());
})();
  • No labels