Onload Event
Onload Event (desktop) - app.record.index.show
An event triggered after the record list page is displayed on desktop.
Function
app.record.index.show
Sample
|
|
Triggered Timing
- General:
- After displaying the record list page
- After displaying the record list page when clicking the Next or Previous arrow icons (the icons are displayed when all records cannot be fit into one page)
- After applying filter conditions on the record list page
- After changing the category on the record list page
- List view type:
- After sorting the record order when clicking the field titles on the record list page
- Calendar view type:
- After changing the year or month on the record list page
Properties of the Event Object
| PROPERTY | TYPE | DESCRIPTION |
|---|---|---|
| type | String | The event type. Returns app.record.index.show. |
| appId | Number | The App ID. |
| viewId | Number | The View ID of the record list. |
| viewName | String | The View Name of the record list. |
| viewType | String | The type of the record list. Possible values are list, calendar, or custom. |
| records | Array or Object | Differs depending on the viewType:
|
| date | String | Differs depending on the viewType:
|
| offset | Number | Differs depending on the viewType:
|
| size | Number | Differs depending on the viewType:
|
Available Event Object Actions
By returning a Promise object in the event handler, the next operations can be processed after waiting for asynchronous processes in the event handler to finish.
Onload Event (mobile) - mobile.app.record.index.show
An event triggered after the record list page is displayed on mobile.
Function
mobile.app.record.index.show
Triggered Timing
- General:
- After displaying the record list page
- After displaying the record list page when clicking the Next or Previous arrow icons (the icons are displayed when all records cannot be fit into one page)
- After changing the category on the record list page
- List view type:
- After sorting the record order when clicking the field titles on the record list page
- Calendar view type:
- After changing the year or month on the record list page
Properties of the Event Object
| PROPERTY | TYPE | DESCRIPTION |
|---|---|---|
| type | String | The event type. Returns mobile.app.record.index.show. |
| appId | Number | The App ID. |
| viewId | Number | The View ID of the record list. |
| viewName | String | The View Name of the record list. |
| viewType | String | The type of view of the record list. *Available only if the View Type is List View or Custom View |
| records | Array | An array of record objects. *Available only if the View Type is List View or Custom View |
| offset | Number | The offset of the list. *Available only if the View Type is List View or Custom View |
| size | Number | The number of records in the list. *Available only if the View Type is List View or Custom View |
Available Event Object Actions
By returning a Promise object in the event handler, the next operations can be processed after waiting for asynchronous processes in the event handler to finish.
Limitations
- Refer to the Limitations section of the following article for more details:
Event Handling