Skip to content

Developer Function: Server Script: responses.Reload

Overview

This method reloads the column specified in the "Server Script".

Syntax

responses.Reload(type, id)

Parameters

Parameter Type Required Description
type string Specify the area of ​​the column to be reloaded.
id string Specify the column to be reloaded.

Usage Example

The following example gets the record in the recorded table for site ID: 123456 and uses the record information (record ID, ClassA) to create and reload the Option list for ClassJ in the filters on the list screen.

JavaScript
if (context.Action === 'index') {
    const records = items.Get(123456);
    for (let record of records) {
        columns.ClassJ.AddChoiceHash(record.ResultId, record.ClassA);
    }
    responses.Reload('Filter', 'ClassJ');
}