Indirect Widgets

Indirect widgets are used to display and edit data not about a selected records, but other entries which are dependent on or related to them.

It is possible to extend the list and variety of indirect widgets, and Rierino is shipped with the following widgets:

Dependent Object Editor

DependentObjectEditor provides ability to search for, create and edit entries that are dependent to current record (such as variants of a product or values of an attribute). This editor uses DependentQueryTableLister for listing dependent objects by default, which is configured similar to the QueryTableLister. This widget has the following special properties:

Property
Definition
Example
Default

Type

Name of the schema and UI configuration that will be used for listing and editing dependent objects

product_variant

-

Source

Name of data source mapping to use for fetching dependent objects

product_variants

value of type property

Query Field

Filter name that will be passed on for querying the source

productid

-

Data Field

Json path for setting value of current object in dependent entries

data.productId

-

No Create

Whether record creation should be restricted

true

false

Dependent Lister Type

Type of dependent lister to use for displaying records

DependentHandlebarsLister

DependentQueryTableLister

Keep Filters

Whether original lister filters defined in referenced UI should be displayed or not

true

false

RelatedObjectEditor provides ability to create relation between current record and other existing entries (such as adding products to a collection). This editor allows searching for existing entries using configurable filters. This widget has the following special properties:

Property
Definition
Example
Default

Object Source

Name of data source mapping to use for fetching list of related records and details

product

-

Object Selector Path

Json path to the id field for representing related record

id

-

Object Detail Source

Overriding data source name to use when displaying related record details

product-list

-

Detail Filter

Filter parameter to pass related records with when querying from detail source

productids

-

Detail Columns

List of table column configurations for displaying related record details

{"path":"id","title":"ID"}

-

Object List Source

Overriding data source name to use when searching for records

product-search

-

List Main & Detail Filters

List of main and extra filters for searching from list source

"main":[{"path":"name","widget":"TextFilter"}]

-

List Columns

List of table column configurations for displaying search results

{"path":"id","title":"ID"}

-

Path to Assign from

Json path for value to assign to related entities from current record

id

-

Path to Assign to

Json path of related entities to update

data.main.collections

-

Add Url

Url for adding relation to new entities

request/rpc/productw/AddToCollection

-

Remove URL

Url for removing relation from existing entities

request/rpc/productw/RemoveFromCollection

-

History Display

HistoryDisplay is a specialized editor for displaying historical versions of an item.

Runner Element Viewer

ElementViewer is a specialized editor for displaying details of an element added to a runner.

Last updated