Load and save data

Technologies > Software Engineering Techniques > Software Engineer Views > Load and Save Data

This example controller class demonstrates how to load records from the data source:

this.record = this.prgData_requestDataSource. getRecord ();


modify record values programmatically and display the updated value in the column report panel:

var dateRequested = this.record.getValue('wr.date_requested');
// add one day
dateRequested = dateRequested.add(Date.DAY, 1);
// set record value as a Date object
this.record.setValue('wr.date_requested', dateRequested);
this.prgData_requestReport. setRecord (this.record);


and save the updated record to the data source:

this.prgData_requestDataSource.saveRecord(this.record);

View: http://localhost:8080/archibus/schema/ab-products/solutions/programming/data/ab-ex-prg-data.axvw