EasyFM - v5.0.0-beta.1
    Preparing search index...

    Class Layout<T>

    Layout-scoped API wrapper for metadata, scripts, and record operations.

    Type Parameters

    Implements

    • LayoutBase
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    database: DatabaseBase
    metadata:
        | {
            fieldMetaData: {
                autoEnter: boolean;
                displayType: | "calendar"
                | "editText"
                | "popupList"
                | "checkBox"
                | "radioButtons"
                | "selectionList"
                | "secureText";
                fourDigitYear: boolean;
                global: boolean;
                maxCharacters: number;
                maxRepeat: number;
                name: string;
                notEmpty: boolean;
                numeric: boolean;
                repetitionEnd: number;
                repetitionStart: number;
                result: "number"
                | "time"
                | "container"
                | "text"
                | "date"
                | "timeStamp";
                timeOfDay: boolean;
                type: "normal" | "summary" | "calculation";
                valueList?: string;
            }[];
            portalMetaData: Record<
                string,
                {
                    autoEnter: boolean;
                    displayType: | "calendar"
                    | "editText"
                    | "popupList"
                    | "checkBox"
                    | "radioButtons"
                    | "selectionList"
                    | "secureText";
                    fourDigitYear: boolean;
                    global: boolean;
                    maxCharacters: number;
                    maxRepeat: number;
                    name: string;
                    notEmpty: boolean;
                    numeric: boolean;
                    repetitionEnd: number;
                    repetitionStart: number;
                    result: "number"
                    | "time"
                    | "container"
                    | "text"
                    | "date"
                    | "timeStamp";
                    timeOfDay: boolean;
                    type: "normal" | "summary" | "calculation";
                    valueList?: string;
                }[],
            >;
            valueLists?: {
                name: string;
                type: string;
                values: { displayName: string; value: string }[];
            }[];
        }
        | null = null
    name: string
    records: LayoutRecordManager<T> = ...

    Accessors

    • get endpoint(): string

      Base endpoint for this layout on FileMaker Data API.

      Returns string

    Methods

    • Retrieves the layout metadata

      Returns Promise<
          {
              fieldMetaData: {
                  autoEnter: boolean;
                  displayType: | "calendar"
                  | "editText"
                  | "popupList"
                  | "checkBox"
                  | "radioButtons"
                  | "selectionList"
                  | "secureText";
                  fourDigitYear: boolean;
                  global: boolean;
                  maxCharacters: number;
                  maxRepeat: number;
                  name: string;
                  notEmpty: boolean;
                  numeric: boolean;
                  repetitionEnd: number;
                  repetitionStart: number;
                  result: "number"
                  | "time"
                  | "container"
                  | "text"
                  | "date"
                  | "timeStamp";
                  timeOfDay: boolean;
                  type: "normal" | "summary" | "calculation";
                  valueList?: string;
              }[];
              portalMetaData: Record<
                  string,
                  {
                      autoEnter: boolean;
                      displayType: | "calendar"
                      | "editText"
                      | "popupList"
                      | "checkBox"
                      | "radioButtons"
                      | "selectionList"
                      | "secureText";
                      fourDigitYear: boolean;
                      global: boolean;
                      maxCharacters: number;
                      maxRepeat: number;
                      name: string;
                      notEmpty: boolean;
                      numeric: boolean;
                      repetitionEnd: number;
                      repetitionStart: number;
                      result: "number"
                      | "time"
                      | "container"
                      | "text"
                      | "date"
                      | "timeStamp";
                      timeOfDay: boolean;
                      type: "normal" | "summary" | "calculation";
                      valueList?: string;
                  }[],
              >;
              valueLists?: {
                  name: string;
                  type: string;
                  values: { displayName: string; value: string }[];
              }[];
          },
      >

      The layout metadata.

      If an error occurs during the API request.

    • Executes a FileMaker script on this layout asynchronously and returns the result.

      Parameters

      • script: Script

        The script to be executed.

      Returns Promise<ScriptResult>

      • A promise that resolves to the script result or rejects with an error.