Attribute.getPPCreateObj

Syntax

getPPCreateObj();

Description

The getPPCreateObj method gets information about the control that corresponds to MDM dictionary attribute.

Comments

This method returns a JSON object with the collection of fields, that depends on control type.

Example

To execute this example, first execute the example on the page with description of the Attribute constructor. Get information about the control that corresponds to the Last Editing Date attribute:

var obj = attribute.getPPCreateObj();
console.log("Control type: %s", obj.PPType);
console.log("The %s control can be empty", obj.IsNullable ? "" : "not ");
console.log("The %scontrol is shown", obj.IsVisible ? "" : "not ");

After executing the example the browser console shows type of the control that corresponds to attribute, and shows, if it can have an empty value and is displayed:

Control type: PP.Ui.DateTimePicker

The control cannot be emplty

The control is shown

See also:

Attribute