Hello! We want to initialize some fields in newly added records, BUT: 1- if I put code in actNewRecord button(api_datasource.setColumnValue....), the record status became api_datasource.ROW_STATUS_NEW, the datasource isDirty, and the record will be saved when the user press Save button, which I dont want to happen. Is there a way to set the status of record in api_datasource.ROW_STATUS_TEMP after these initializations? 2- If I check Force Current Row in Datasource, a new record is created, but no field initialization can be done. Or we can, in this case, HOW, please? 3- If I dont check Force Current Row in Datasource, I can force initialization, but we return to case 1-, plus... if the user want to delete the last and only row in the datasource he cannot save because doCommit rises api_exception.e_noCurrentRow exception. Any sugestions will be apreciated! Thx, Cezar |