@Override public void SaveDateValuesBeforeChange(Bundle data) { super.SaveDateValuesBeforeChange(data); if (GetStartMode() == StartMode.EDIT) { data.putLong("dateStart", dataRow.GetStartDate().getTimeInMillis()); data.putLong("dateEndOn", dataRow.GetRepeat().GetEndOnDate().getTimeInMillis()); } }
public boolean OpenDataForEdit(DataTable data) { long lRowId = RequestedRowId(); Database.Result result = data.GetRowDataForEdit(lRowId); if (result == Database.Result.Success) { // save date values for change test SaveDateValuesBeforeChange(bundleDateValues); return true; } else { // return fail result for caller int iMsgId = Database.GetErrDesc(result); Bundle extras = PutBundledMessage(iMsgId); setIntentResult("", RESULT_CANCELED, extras); return false; } }