Component

Class representing a Component in a Page.

Functions

# List Page (Standard)

setValue(value)

Set the component value in the Page

Parameters:
Name Type Description
value String

Component value

Example

Custom ViewCopycopied

ZDK.Page.getComponent("list-custom-view").setValue("4312588000000087501");

# List Page (Standard)

getValue()

Get the component value in the Page

Example

SampleCopycopied

ZDK.Page.getComponent("list-custom-view").getValue();

# List Page (Standard)

setVisibility(value)

Set visibility of the component in the Page

Parameters:
Name Type Description
value boolean

visibility of the component true|false

Example

SampleCopycopied

ZDK.Page.getComponent("list-custom-view").setVisibility(false);

# List Page (Standard)

getOptions()

Get Options in a component in Page

Example

SampleCopycopied

ZDK.Page.getComponent("list-custom-view").getOptions();

# List Page (Standard)

setOptions(options)

Set Options in a component in Page

Parameters:
Name Type Description
options Array

Array of options

Example

SampleCopycopied

ZDK.Page.getComponent("list-custom-view").setOptions([{id: "111113000000042834"}, {id: "111113000000042894"}]);

# Wizard

transitionTo(api_name)

Makes the transition to the specified screen

Parameters:
Name Type Description
api_name String

Api name of the screen

Example

SampleCopycopied

ZDK.Page.getComponent("record-create-wizard").transitionTo('Car_Loan');