You can interact with a Form's
Database Resources, in any of the Form's events, including its Control's events.
The Verj.io JavaScript API provides the resources
interface, that can be used to interact with any of the Form's Resources, including:
- Load a Resource and populate its mapped Fields:
resources.myResource.fetch()
- Perform an update to the database using the values of its mapped Fields:
resources.myResource.update()
- Insert a row into the database passing the values of its mapped Fields:
resources.myResource.insert()
- Delete a row from the database using values from its mapped Fields to identify the row:
resources.myResource.delete()