FormLayout
Exposes the structure of an app's form layout, allowing you to review or update how sections, fields, and elements are arranged for end users.
Select
WHERE 句ではAppId カラムが必須です。本製品 はKintone API を使用してこのカラムによる結果をフィルタリングします。デフォルトでは、本製品 はクライアント側で本製品 内で他のフィルタを処理します。
例えば、次のクエリはサーバー側で処理されます。
SELECT * FROM FormLayout WHERE AppId = 6 SELECT * FROM FormLayout WHERE AppId = 6 AND Lang = 'en' SELECT * FROM FormLayout WHERE AppId = 6 AND IsPreview = false
Update
FormLayout を更新するには、Layout を集計として指定します。フォームのすべてのフィールドは集計で指定される必要があります。FormLayout を更新するには、AppId カラムが必須です。
UPDATE FormLayout SET Layout = '[{"type":"ROW","fields":[{"type":"SPACER","code":"Table_0","size":{"width":"200"}}]}]' WHERE AppId = 6
Columns
| Name | Type | ReadOnly | References | Description |
| AppId [KEY] | Integer | False |
Identifier of the Kintone app whose form layout configuration is being retrieved or updated. | |
| Fields | String | False |
List of fields contained in the layout row, representing the elements displayed together in that section of the form. | |
| Type | String | False |
Type of layout row, indicating how the row is structured and how its fields are arranged within the form. 使用できる値は次のとおりです。ROW, SUBTABLE, GROUP | |
| Code | String | False |
Field code of the Table or Group field associated with the row, returned only when the row represents one of these container types. | |
| Revision | String | True |
Revision number of the app settings, helping track changes made to the form layout over time. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるデータを詳細に制御することができます。
| Name | Type | Description |
| IsPreview | Boolean |
Indicates whether to retrieve form-layout details from the preview environment ('true') or from the live environment ('false'). The default value is 'true'. |
| Layout | String |
Value used only when performing an insert or update to supply modified layout definitions. |