Type Alias SelectionError

Selection error related to a fieldName. The field name is missing or some of his selection values are missing or a state is missing

type SelectionError = {
    detail?: string;
    errorType?:
        | "fieldMissing"
        | "fieldValuesMissing"
        | "stateMissing"
        | "groupStateGroupMissing"
        | "groupStateGroupNotApplicable"
        | "groupStateFieldDefMissing";
    fieldName?: string;
    isFieldNameMissing?: boolean;
    missingValues?: QFieldValue[];
    stateName?: string;
}
Index

Properties

detail?: string

Details about the field selection error.

errorType?:
    | "fieldMissing"
    | "fieldValuesMissing"
    | "stateMissing"
    | "groupStateGroupMissing"
    | "groupStateGroupNotApplicable"
    | "groupStateFieldDefMissing"
fieldName?: string

The field name that is missing.

isFieldNameMissing?: boolean

Deprecated, use errorType instead. True if the fieldName is missing. The missingValues array is empty in this case

missingValues?: QFieldValue[]
stateName?: string

The state name that is missing.