• JMap.Application.Query.getDefaultData

    Returns the current query form data.

    If there is no active form, warns in the console and returns an empty object {}. Throws if the active form needs metadata that has not finished loading. Values explicitly supplied with setDefaultData can be returned before metadata loads.

    Returns {
        [id: string]: any;
    }

    • [id: string]: any

    Throws

    if the active query form metadata is unavailable and no default data was set

    Example

    // returns the current query form data
    JMap.Application.Query.getDefaultData()