Scripted Related Lists are different from related lists in that queries to the related tables are performed by the script.

These lists can be configured via the Scripted Related Lists (sys_related_list_script) table.

To set up a scripted related list, please complete the steps below:

  1. Navigate to System Settings → Scripted Related Lists.
  2. Click New and fill in the form.
  3. Click Save or Save and Exit to apply changes.

Relationships form fields

FieldMandatoryDescription
NameYRelationship name displayed in the list.
Apply toYSpecify the table on the forms of which this related list will be displayed.
Query FromYSpecify the table containing the source records for this list.
Query WithYIn this field, you can put down a script specifying the records to include from the table processed by this relationship. 

In your scripts, you are free to use current and parent objects. The main purpose of this script is to generate a query that will be applied to the table specified in the Query From field.


  1. The current object is an object of the table where the query is created (the table specified in the Query From field).
  2. The parent object is a reference to the object of a table specified in the Apply to field.

In other words, the parent object is a record form specified in the Apply to field, and a current object is a list from a table specified in the Query From field.

You can use any SimpleRecord Server-Side methods as directives in the current and parent objects.


  • No labels