Table of Contents

Ordered Related List Component

Need a small backend tweak — a computed column, a rule on the reconciled ordered set, a custom permission, hide-by-state, or rows from an external source? Don't reimplement the component. Override one extension seam on OrderedRelatedListComponent and keep the Core pipeline. See Extending Core Components · Seam Reference.

Like the Simple Related List but with drag-and-drop reordering. The React shell renders each row with a drag handle on the left; rows can be dragged into any position and the new order is persisted on save.

Ordered Related List in the React shell — drag handles visible on the left of each row, Add Related button top-right

The screenshot above shows the Ordered Related List rendering a small related-records set (in this case an APPs list on a parent record). Each row's leading :: icon is the drag handle — drag a row up or down to change its position in the list. The new order is persisted when the operator clicks the page-level Save button.

Related docs.
Simple Related List — base component this extends; configuration keys below are mostly identical.
System Overview — RenderV2.

Limitations:

  1. This component only accepts relation by Relationship Table (not by direct foreign key).
  2. Maximum rows per list: 15. If you need more, switch to the Simple Related List + a sort field.

Configuration Keys

These are all available Configuration Keys for the Ordered Related List Component.

The configuration must be inserted into the database table:

MIB3UX_PAGE_COMPONENT_CONFIGURATIONS

TITLE

The value is the name of the component rendered in the page.

ALLOW_ADD_EXISTING

Boolean value;

True: default value; enable render of addExisitng button into a related component

False: disable render of addExisitng button into a related component

ALLOW_ADD_NEW

Boolean value;

True: enable render of addNew button in related component;

False: disable render of addNew button in related component;

Note

This configuration is applied together with RelatedCopyType for the copy-with-relateds flow and directly affects its applicability. Here are the use cases:
RelatedCopyType.DoNotCopy,RelatedCopyType.ShallowCopy
if AllowAddNew is true and the user does not have write permission on the MediaType, the data will not be copied.
RelatedCopyType.DeepCopy
if AllowAddNew is false or the user does not have write permission on the MediaType, the data will not be copied.

ALLOW_CLEAR_ALL

Allows one to remove all items of the list just by clicking a button

Boolean value;

True: Enables the Clear All button

False: default value; Disables the Clear All button

ALLOW_EDIT

Boolean value;

True: default value; Enable page item to be edited

False: disable component edition disregarding the user permissions

ALLOW_REMOVE

Boolean value;

True: default value; Enable page item to be deleted

False: disable component deletion disregarding the user permissions

ALLOW_ROW_REORDER

Boolean Value;

True: Enable drag & drop. True is Default value

False: Desable drag & drop

Details : Allows user to drag & drop each row item to reorder the list.

ASIDE_FIELDS

Flag that specify which columns will be shown into related aside

Ex:

CONFIGURATION_KEY:   ASIDE_FIELDS
CONFIGURATION_VALUE: ID,NAME,SOURCE,DATEINS,INSTANCE_ID,OWNER

ASIDE_FILTERS

Add custom filter to items shown in related aside;

Ex: having a related field, the custom aside configuration should be:

CONFIGURATION_KEY:   ASIDE_FILTERS
CONFIGURATION_VALUE: { Field: 'GVP_GENRES[NAME]', Operator: 'EQUAL', Value: 'action' }

In this case, only genres with value ‘ação’ should be shown

Another way to use is this one:

CONFIGURATION_KEY:   ASIDE_FILTERS[<CAMPO_RELATED>]
CONFIGURATION_VALUE: <FILTER1>,<FILTER2>

Ex:

CONFIGURATION_KEY:   ASIDE_FILTERS[INSTANCE_ID] 
CONFIGURATION_VALUE: { Field: 'NAME', Operator: 'STARTSWITH', Value: 'MIB' }

It is also possible to use a dynamic value making reference of a form component field, using as Value [templateComponentKey.columnName],

for example:

{Field: 'SOURCE[ID]', Operator: 'EQUAL', Value: '[mib_default_edit_template_main.SOURCE]'}

It is important to pass the [ID] (or any field that related use as value), because by default MIB3 will add[NAME] as a filter of a related field.

Note

When MIB applies the filter and does not find the Value, it will display a message to the end user indicating that the information is missing: {DICT:validation/invalidvalueforasidefilter}. It is possible to customize the message that will be displayed to the user for each ASIDE_FILTERS configuration by specifying the new parameter: Message. Example: {Field: 'SOURCE[ID]', Operator: 'EQUAL', Value: '[mib_default_edit_template_main.SOURCE]', Message: `{DICT:validation/mycustommessage}.`}

BATCH_REFERENCE_IDENTIFIER

Set batch reference to another value instead of the component TemplateComponentkey

DENY_ON_READONLY

Boolean value;

True: Deny save on items when the user does not have permission in a related component or field in page

False: Allow save to a user even if it does not have permission of all media types in the page

EXCLUDE_FIELDS

Value is a list of admFields;

The admifields in list will not be displayed to the user.

Ex:

CONFIGURATION_KEY:   EXCLUDEFIELDS
CONFIGURATION_VALUE: name,timezone,genres

IGNORE_ADMFIELDS

Boolean Value;

True: The related admFields of a page will not be loaded.

False: Value default; load all related mediatypes associated with the main one

Details: Having a movie list page, this page contains the related fields source, genres and content category. By default, each movie that the api load also query the related fields. Now if (IGNORE_ADM_FIELDS = true) is specified the api in preload will not load the related admfields.

INCLUDE_FIELDS

Values is a List of Admfields;

Force component display only admfields contained in the passed list. All of them show — id first, then by ADM_FIELDS.ORDERLIST, with a field that has no ORDERLIST first — never in the order written. See List → Column layout.

Ex:

CONFIGURATION_KEY:   INCLUDE_FIELDS
CONFIGURATION_VALUE: name,timezone,genres

IS_CHILD_REQUIRED

Boolean Value;

True: Force user add some register to a secondary component in order to save the edition

False: default value; The user does not need to add any register to the auxiliary components

Details : Having a movie form with a simple related list genres, if the flag is IsChildRequired = true to the genre component, at least one register should be added.

MEDIATYPE

The value is a name of a meditype.

This configuration defines which mediatype is loaded in the component.

PARENT_BATCH_REFERENCE_IDENTIFIER

Set parent batch reference to another value instead of the component default ParentTemplateComponentkey

PARENT_MEDIATYPE

Value is a Mediatype name;

It is used to link the main mediatype from the page with the mediatype of related component;

Ex:

Having a Movie page with a MMedias related form component.

Into the MMedias related form configuration, may be used the following:

CONFIGURATION_KEY:   PARENT_MEDIA_TYPE
CONFIGURATION_VALUE: MVP_MOVIES

Now, the mmedias items are linked with the main mediatype (movies) item.

READONLY

Boolean value;

True: force a component be read only disregarding the user permissions

False: default value; component behavior regards only user permissions

READONLY_FIELDS

List value;

Force fields in component be read only disregarding the user permissions.

Creating child rows inline (ALLOW_ADD_NEW) — the parent-FK auto-stamp

ALLOW_ADD_NEW lets the operator create a brand-new child row inline instead of only linking an existing one. If the child media type owns its own parent-pointing FK column (rather than relying purely on a relationship-table bridge row), that FK must be filled in on creation — and whether that happens automatically depends on whether the list is Ordered or Simple.

Only the SIMPLE related-list workflow computes schema.parentField (SimpleRelatedListHelper .GetInformationsAboutAdmRelated, SimpleRelatedListWorkflow.cs) — the ORDERED workflow never sets it (no assignment anywhere in OrderedRelatedListWorkflow.cs). The React client echoes schema.parentField back as saveOptions.parentField on save, and the BFF only auto-stamps the child's FK field when that value is present (OrderedSaveTemplateBase.cs / SimpleSaveTemplateBase.cs, MediaiBox.Cms.FrontEnd.Server /Component/Persistence/):

if (!string.IsNullOrWhiteSpace(parentField))
{
    var fieldValue = context.IDs.Contains(0) ? "$" + entitiesData.ParentBatchReference : context.IDs.First().ToString();
    fields[parentField] = fieldValue;   // "$<ref>" while the parent is still being created; resolved by the mib.api $batch
}

So on an Ordered related list, parentField is always null → the auto-stamp never fires. If the child's FK column is NOT NULL, the inline create fails at INSERT with Cannot insert the value NULL into column '<FK>' — unless a save seam (e.g. OnRelatedSaveReconciled, see Extending Core Components) stamps the FK explicitly before persistence, e.g. newEntity.Fields["<FK>"] = ParentIDs.First();.

⚠ Live caveat (do not trust the SIMPLE-list auto-stamp on this line). The schema.parentField mechanism above is what the SDK computes for the simple workflow, but it has NOT held in practice on MIB 7.0: a genuine direct 1:N SIMPLE list (IsRelationshipTable = false) with a NOT NULL child FK still 400'd Cannot insert the value NULL on inline create (stock mib_default_simplerelatedlistcomponent; reproduced by the shipped Claro PaymentPolicyMethodComponent). The practical rule is identical regardless of why the auto-stamp doesn't fire: for EVERY relation shape — ordered, N:N, AND direct 1:N simple — stamp the parent FK yourself in OnRelatedSaveReconciled whenever it is NOT NULL. Only make the FK nullable if you truly want unparented rows.

⚠ The stamped FK must be declared WRITABLE (readOnly: false) — mib.api silently drops writes to read-only fields, server-side stamps included (the datamodel DDL rule; live-reproduced as SDD H32, where a readOnly: true FK made the seam's stamp vanish and three plausible fixes failed with the identical symptom). Hide the FK from the editor by OMITTING it from INCLUDE_FIELDS (the creatable set) — that is the correct hiding mechanism here, not readOnly. Note also (SDD H39): a FormComponentCustomBusinessRule canNOT do this stamp — business rules never feed the child-create POST; OnRelatedSaveReconciled is the seam that carries saveData.NewEntities.

Canonical shapes

  • Unordered child-owns-FK (1:N composition) — a Direct AdmRelated (IsRelationshipTable = false, LinkObject = false): the API maintains the FK column itself. Do NOT assume the SIMPLE list auto-stamps the child's FK on this line — live-reproduced on MIB 7.0, a direct 1:N SIMPLE list's inline create 400'd Cannot insert the value NULL into '<FK>' (the stock mib_default_simplerelatedlistcomponent; see the shipped Claro PaymentPolicyMethodComponent, a thin SimpleRelatedListComponent subclass that exists ONLY to add this stamp). Stamp the FK yourself in OnRelatedSaveReconciled (the same seam the ordered/N:N shapes use), or make the FK nullable. Direct cannot be ordered.
  • Ordered list — the intended shape is a separate thin relationship (bridge) table (IsRelationshipTable = true, RelationshipTable = <bridge>, LocalColumn/RemoteColumn = the bridge's two FK columns, OrderColumn = the bridge's order column — see Declare a many-to-many relation) — pure membership tuples the engine can freely INSERT/DELETE without touching the child's own columns. If the child ALSO needs a NOT NULL parent FK, that is redundant with the bridge; pick ONE owner of the truth.
  • If the child-as-own-bridge shape is used anyway (ordered + the child owns the FK + inline create), it MUST be guarded: seam-stamp the FK on every create, keep ALLOW_ADD_EXISTING = false, never enable clone/copy or bulk-Replace, and treat "remove" as a hard delete (an explicit-ID INSERT into an IDENTITY column cannot otherwise succeed, and there is no dedupe safety net for relationship-table adds).

The add-new creatable field set

The add-new drawer's field set is the related-list component's OWN INCLUDE_FIELDS/EXCLUDE_FIELDS configuration (documented above) — the SAME list used for the grid columns. There is no separate Form-page lookup: REDIRECT_TO_EDIT_PAGE_BY_FIELD's target page hyperlinks the ID column but does not bind a Form page to the child media type for add-new purposes.

Configurations Exclusive to MibReact

Below are some configurations that apply only to MibReact components.

Value type: String

Allows inserting a footer message in the component. This information can be in html format. Example:

CONFIGURATION_KEY: FOOTER_INFORMATION
CONFIGURATION_VALUE: <b>Footer Information</b>

SHOW_REFRESH_BUTTON

Value type: Boolean

Shows the "Refresh" toolbar button (served as schema.configuration.refreshable). The core-fetched path reads it in ListWorkflow.GetRelatedListSchemaConfiguration, as for the Simple Related List; a self-fetch list (ProvidesExternalData) applies it only from MIB 7.1.

EDIT_URL — not supported here

OrderedRelatedListComponentConfiguration has no EditUrl property, so an EDIT_URL on an ordered related list is stored and never read, on every MIB version — including 7.0.0, where MEDIAIBOX-12228 gave the simple related list EDIT_URL parity but deliberately left this archetype out. Configure REDIRECT_TO_EDIT_PAGE_BY_FIELD[ID] below instead — it is the only navigation source this component reads. mib inventory --warnings reports the inert key.

ALLOW_QUICK_EDIT

Value type: Boolean

True: each row gets a quick-edit action that opens the child in a side drawer, without leaving the parent page; also gated by the user's write permission on the child media type. Wired for this archetype from MIB 7.0.0 (MEDIAIBOX-12228). The drawer needs the schema's form page key, which on an ordered related list comes only from REDIRECT_TO_EDIT_PAGE_BY_FIELD[ID] (there is no EDIT_URL here) — without it, no quick-edit action appears.

REDIRECT_TO_EDIT_PAGE_BY_FIELD

Dictionary<string, string>;

Turns one COLUMN's cell into a link, on the form page named by the value. The bracket suffix is the column the link hangs on; the value is a bare page key, not a ~/app/... route. Works on any column, not only ID. The bracket key must match the column COLUMNNAME (matched case-insensitively).

Which record it opens depends on that column's type. From MIB 7.0.3 (MEDIAIBOX-12263) an Integer, Long or Related column opens the record its own value references — REDIRECT_TO_EDIT_PAGE_BY_FIELD[LANGUAGE_ID] opens that language — while every other type still opens the row's own record, which is what keeps a descriptive NAME column linking to its own row. Before 7.0.3 every configured column opened the row's own record whatever its type, so the same configuration renders a different link on an older stack. Either way the React route is ${pageKey}/${id}, and a column whose cell has no content is not turned into a link.

Use as follow:

CONFIGURATION KEY:   REDIRECT_TO_EDIT_PAGE_BY_FIELD[ID] 
CONFIGURATION VALUE: react_movies_edit
Important

On this archetype it is the only navigation source, on every MIB version. OrderedRelatedListWorkflow never reads EDIT_URL — its configuration class has no such property, and the MEDIAIBOX-12228 fix that taught the simple/async related lists to resolve EDIT_URL in MIB 7.0.0 deliberately skipped this one. An EDIT_URL here is accepted, stored and ignored forever, so the rows never navigate.

Note

The same key means something different on a form: there the suffix is a field and the link opens another record, the one that field references. See FormComponent.

If the bound media type has its own form page, configure this key. The record can be opened, so the row has to carry the link; leaving it out strands it. The only exemption is a media type with no form page anywhere — nothing to open. mib inventory --warnings --rule related-list-no-navigation reports the rest.

SECTION_BEHAVIORS

Shows or hides this ordered related list from the value of a field on the content-edition page (MIB 7.1). Same rule format as the form's SECTION_BEHAVIORS: set it on this block and point each rule at the field it watches; for a field of a form with FORMGROUPING, use the form's bare key. There is no keyed SECTION_BEHAVIORS[<order>] variant on this block.

[
  {
    "criteria": {
      "field": { "name": ["subscription_form", "IS_ADULT"], "variant": "switch" },
      "operator": "equal",
      "value": true
    },
    "update": { "visible": false }
  },
  {
    "criteria": {
      "field": { "name": ["subscription_form", "IS_ADULT"], "variant": "switch" },
      "operator": "equal",
      "value": false
    },
    "update": { "visible": true }
  }
]

While the first rule holds, the block and its tab disappear; its data is still saved.

ADD_NEW_CUSTOM_BEHAVIORS[FieldName]

Defines the dynamic behaviour rules of a field of the "Add New" drawer of this block (MIB 7.1), in the same format as the form's CUSTOM_BEHAVIORS[FieldName]. FieldName is the column name of the drawer field, and each rule watches another field of the same drawer. See Simple Related List for an example and for how an invalid value is handled.

Self-fetch, row preview and endpoints on MIB 7.1

  • Self-fetch page configuration. A subclass with ProvidesExternalData => true is served TITLE, FOOTER_INFORMATION, the row link (REDIRECT_TO_EDIT_PAGE_BY_FIELD[ID]) and SHOW_REFRESH_BUTTON from 7.1; on 7.0 its stub schema ignores them. See the table in Simple Related List.
  • A handler. On 7.0 this archetype has no handler at all (it does not derive from RelatedListComponentBase): no row preview, and nowhere to host an endpoint. From 7.1 it implements IHandlerComponent<OrderedRelatedListComponentConfiguration> with public virtual IHandler GetHandler(), so every stock Ordered list serves the inline row preview the related lists serve (/api/v2/handler/{pageKey}/{templateComponentKey}?op=preview, /api/v2/list/inline/{pageKey}/{templateComponentKey}/{id}; up to 100 rows by id, every column of the media type). A subclass can host its own endpoints and delegate the rest to base.GetHandler() — see Endpoints on a stock subclass.
  • External persistence (ProvidesExternalPersistence + OnPersistExternal) exists on this archetype from 7.0.1; on 7.1 the write runs after the whole page is collected and the page plugin let the save through.

Source reference

React type-key (effective) relatedList — set via COMPONENT_VIEW_TYPE. The raw class name resolves to orderedrelatedlist, which is not directly mapped in the React shell's registry today
BFF assembly MediaiBox.Cms.FrontEnd.Server (before 2021: MibServer3.Web)
BFF class MediaiBox.Cms.FrontEnd.Server.Component.OrderedRelatedListComponent
MIB3UX_COMPONENTS.COMPONENT_KEY mib_default_orderedrelatedlistcomponent
React widget source packages/core-components/src/components/related-list/RelatedList.tsx — the drag-handle UI is enabled by the schema's Reorderable flag
Schema / data contract Default List Schema — same as Simple Related List, plus Reorderable: true

Custom backend, core React. Same shape as Simple Related List with Reorderable: true in the schema's configuration, and COMPONENT_VIEW_TYPE = 'relatedList'. The drag-and-drop behavior, the 15-row hard limit, and the persistence of the new order all live in the RelatedList.tsx widget — your C# class only needs to emit a list of items in the desired initial order.

Not ship a list in the wrong order, and not trust the grid as the source of truth.