This method collects and saves the affected table-data(tds) to the database. It does an update on both the new and existing records.
xxxxxxxxxx
async update_database() {
Collect all the edited inputs, the data and the positions on the crud page.
xxxxxxxxxx
const questions:Array<quest.label> = [...this.collect_questions()];
Write the inputs to the server database and return the save result as Imala(a table format).
xxxxxxxxxx
const Imala:library.Imala = await server.exec(
To load the new data, we'll use the large table load method which is in questionnaire format, collect the labels , use the load method for CRUD purposes, finally use the xml and html log files to write the output.
xxxxxxxxxx
"questionnaire",
[questions],
"load_user_inputs",
[]
);
When the save is successful , use the result to report the status on the crud page.
xxxxxxxxxx
this.report_imala(Imala);
}