/** * Change the start time of this service. */ public void updateField(String strFieldName, Object objData) { try { FieldInfo fieldInfo = m_table.getRecord().getField(strFieldName); if (fieldInfo != null) { m_table.edit(); fieldInfo.setData(objData); m_table.set(m_table.getRecord()); m_table.seek(null); // Read this record } } catch (Exception ex) { ex.printStackTrace(); } } }
/** * Reposition to this record using this bookmark. * @param bookmark The handle to use to position the record. * @param iHandleType The type of handle (DATA_SOURCE/OBJECT_ID,OBJECT_SOURCE,BOOKMARK). * @return - true - record found/false - record not found * @exception FILE_NOT_OPEN. * @exception DBException File exception. */ public boolean doSetHandle(Object bookmark, int iHandleType) throws DBException { String strCurrentOrder = this.getRecord().getKeyName(); this.getRecord().setKeyArea(Constants.PRIMARY_KEY); this.getRecord().getCounterField().setData(bookmark); boolean bSuccess = this.seek(Constants.EQUALS); this.getRecord().setKeyArea(strCurrentOrder); return bSuccess; } /**
String strOldKeyArea = recBooking.getKeyName(); recBooking.setKeyArea(strKeyField); bSuccess = recBooking.getTable().seek(Constants.EQUALS); recBooking.setKeyArea(strOldKeyArea); if (bSuccess) bSuccess = this.getTourRecord().getTable().seek(Constants.SEEK_CURRENT_RECORD); if (bSuccess) bSuccess = this.getCurrencyRecord().getTable().seek(Constants.SEEK_CURRENT_RECORD);
recPricingType.getField("ID").setData(intID); try { if (recPricingType.getTable().seek(null))
if (table.seek(null))
String strKeyName = record.getKeyName(); record.setKeyName(Constants.PRIMARY_KEY); boolean bSuccess = record.getTable().seek(null); if (bSuccess) this.fieldsToControls();
bSuccess = recBookingDetail.getTable().seek(null); if (bSuccess) this.fieldsToControls();
tlbBookingDetail.addNew(); tlbBookingDetail.getRecord().getField(Params.ID).setData(intDetailID); if (tlbBookingDetail.seek(null))
if (record.getTable().seek(null))