The usage is pretty wide. You can prefill records in a table based on the currently selected records. Even records from another table.
You can use one of the functions in the doo.form
namespace to manipulate with form object:
async openForm(tableNameOrId, options?, applicationId?)
Example #1 - options parameter - opens a new form
{
model: {
name: 'Peter',
position: doo.model.preposition.value
}
}
Example #2 - options parameter - opens an edit form - use id
in model
{
model: {
id: doo.model.customer.value.id,
position: doo.model.preposition.value
}
}