Get View Settings
Get View Settings - kintone.app.getView()
Retrieves the current view settings information of an App.
Function
kintone.app.getView()
Parameters
None
Returns
A Promise object.
The following values can be retrieved when the Promise object is fulfilled:
| Property | Type | Description |
|---|---|---|
| type | String | The type of View.
|
| builtinType | String | The type of the built-in View.
|
| name | String | The name of the View. |
| id | String | The ID of the View. |
| fields | Array | The list of field codes for the fields displayed in the View. Returned for LIST Views. |
| date | String | The field code set for the Date Field. Returned for CALENDAR Views. |
| title | String | The field code set for the Title Field. Returned for CALENDAR Views. |
| html | String | The HTML content set for the Custom View. Returned for CUSTOM Views. |
| pager | Boolean | The pagination settings. Returned for CUSTOM Views.
|
| device | String | The scope of where the view is displayed. Returned for CUSTOM Views.
|
| filterCond | String | The Filter setting as a query. For more information on query formats, refer to the following article: Query string |
| sort | String | The Sort by order as a query. For more information on query formats, refer to the following article: Query string |
Available Pages
- Record List
Notes
This API retrieves the configured values of the View from the App settings. Even if the view's filter is updated through the UI on the List View, the returned values will not change.
To retrieve the current Filter setting or sort order, use the following APIs: