Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

GlideSysListControl- Scoped

The GlideSysListControl API provides methods that enable you to determine if the New or Edit buttons are displayed.

Parent Topic:Server API reference

GlideSysListControl - GlideSysListControl(String tableName)

Instantiates a GlideSysListControl object.

NameTypeDescription
tableNameStringName of the table

GlideSysListControl - getControlID()

Returns the sys_id for the control.

NameTypeDescription
None  
TypeDescription
Stringsys_id of the control
var sysListCtrl = new GlideSysListControl("incident");
var controlID = sysListCtrl.getControlID();
gs.info(controlID);

Output:

91a807a60a0a3c74012113e28b47ca2e

GlideSysListControl - isOmitEditButton()

Returns true if the edit button is not displayed.

NameTypeDescription
None  
TypeDescription
BooleanTrue when the edit button is not displayed.
var sysListCtrl = new GlideSysListControl("incident");
var isOmitted = sysListCtrl.isOmitEditButton();
gs.info(isOmitted);

Output:

false

GlideSysListControl - isOmitNewButton()

Returns true when the New button is not displayed.

NameTypeDescription
None  
TypeDescription
BooleanTrue when the new button is not displayed.
var sysListCtrl = new GlideSysListControl("incident");
var isOmitted = sysListCtrl.isOmitNewButton();
gs.info(isOmitted);

Output:

false