params needed to update an entry
if layer not found, if form not found, or form is not an external or sub form, or invalid parameter
// returns update result
JMap.Form
.updateDatabaseFormEntries({
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(entries => console.log("Updated entries:", entries))
.catch(error => console.error("An error occurred while updating entries", error))
JMap.Form.updateDatabaseFormEntries
Updates an external or sub form entry.
Works only for external or sub form.