Supported Clients
SmartClient
WebClient
NGClient

Methods Summary
JSRecord
getRecord()
Returns the record of the element that is being rendered.
Number
getRecordIndex()
Returns the record index of the element that is being rendered.
Renderable
getRenderable()
Returns the element that is being rendered.
Boolean
hasFocus()
Returns whether or not the element that is being rendered has focus.
Boolean
isRecordSelected()
Returns whatever or not the record of the element that is being rendered is selected.

Methods Details

getRecord()

Returns the record of the element that is being rendered. This is null for elements of type form when they are in table view mode.

Returns

JSRecord

Supported Clients

SmartClient,WebClient,NGClient

Sample

// type the record returned from the call with JSDoc, fill in the right server/tablename
/** @type {JSRecord<db:/servername/tablename>} */
var record = event.getRecord();
&nbsp;

getRecordIndex()

Returns the record index of the element that is being rendered.

Returns

Number

Supported Clients

SmartClient,WebClient,NGClient

Sample

event.getRecordIndex()
&nbsp;

getRenderable()

Returns the element that is being rendered.

Returns

Renderable

Supported Clients

SmartClient,WebClient,NGClient

Sample

event.getRenderable();
&nbsp;

hasFocus()

Returns whether or not the element that is being rendered has focus.

Returns

Boolean

Supported Clients

SmartClient,WebClient,NGClient

Sample

event.hasFocus();
&nbsp;

isRecordSelected()

Returns whatever or not the record of the element that is being rendered is selected.

Returns

Boolean

Supported Clients

SmartClient,WebClient,NGClient

Sample

event.isRecordSelected()
&nbsp;