Functions
# Create / Edit / Clone Pages Detail Page (Canvas) Detail Page (Standard)
getValues() → {Array}
Get the Subform values of a particular row
Subform values
Examples
SampleCopycopied
ZDK.Page.getSubform('CFSubform').getRow(1).getValues();
Output
{'Name': 'Zylker', 'Age': '20', ...}
# Create / Edit / Clone Pages Detail Page (Canvas) Detail Page (Standard)
setValues(values)
Set(update) the single row of subform
Parameters:
Name | Type | Description |
---|---|---|
values |
Object | An object corresponding to a row in subform, where it contains the field_api_name and its value as key-value pairs |
Example
SampleCopycopied
ZDK.Page.getSubform('CFSubform').getRow(0).setValues({'Name': 'Zylker', 'Age': '20', ...});
# Create / Edit / Clone Pages Detail Page (Canvas) Detail Page (Standard)
getCell(value) → {SubformCell}
Get a single cell of a Subform row
Parameters:
Name | Type | Description |
---|---|---|
value |
Object | Field value |
Examples
SampleCopycopied
ZDK.Page.getSubform('CFSubform').getRow(1).getCell('Name').getValue();
Output
Zylker
# Create / Edit / Clone Pages Detail Page (Canvas) Detail Page (Standard)
setReadOnly(value)
Set the readonly property for the subform row.
Parameters:
Name | Type | Description |
---|---|---|
value |
Boolean | readonly property for the subform Row (true|false) |
Example
SampleCopycopied
ZDK.Page.getSubform('CFSubform').getRow(0).setReadOnly(true);