• JMap.Form.deleteDatabaseFormEntries

    Deletes entries of an attribute form.

    Works only for attribute form.

    Parameters

    Returns Promise<JDeleteEntriesResult>

    Throws

    if layer not found, if form not found, or form is not an attribute form, or invalid parameter

    Example

    // returns delete result
    JMap.Form
    .deleteDatabaseFormEntries({
    layerId: 3,
    formId: 4,
    elements: [{
    id: 3,
    parentId: 3,
    elementId: 3,
    attributeValueByName: {
    name: "bee",
    type: "nest"
    },
    parentAttributeValueByName: {
    jmap_id: 3,
    color: "red",
    type: "tree"
    }
    }]
    })
    .then(result => console.log("Deleted entries result:", result))
    .catch(error => console.error("An error occurred while deleting entries", error))