Interface ControlPageFieldApi

API methods related to object fields associated with a page.

interface ControlPageFieldApi {
    getFieldRestrictions<Type>(field: string): FieldTypeToRestrictions<Type>;
    getFieldValue<Type>(field: string): FieldTypeToValue<Type>;
    setFieldValue<Type>(value: FieldTypeToValue<Type>, field: string): void;
}

Methods

  • Returns the value of the supplied field. This works only with fields for the current object with which the control is associated. For example, if the control is on a parent object, you cannot get a child's field.

    Type Parameters

    Parameters

    • field: string

      {string} Field name.

    Returns FieldTypeToValue<Type>

  • Sets the value of the supplied field. This works only with fields for the current object with which the control is associated. For example, if the control is on a parent object, you cannot set a child's field.

    Type Parameters

    Parameters

    Returns void

MMNEPVFCICPMFPCPTTAAATR