/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { Record recTrxDesc = ((ReferenceField)this.getOwner().getRecord().getField(PaymentHistory.LINKED_TRX_DESC_ID)).getReference(); if (recTrxDesc != null) if (BankTrx.BANK_TRX_FILE.equalsIgnoreCase(recTrxDesc.getField(TrxDesc.DESC_CODE).toString())) return super.fieldChanged(bDisplayOption, iMoveMode); try { m_record.addNew(); } catch (DBException e) { } return DBConstants.NORMAL_RETURN; }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { Record recTrxDesc = ((ReferenceField)this.getOwner().getRecord().getField(PaymentHistory.LINKED_TRX_DESC_ID)).getReference(); if (recTrxDesc != null) if (BankTrx.BANK_TRX_FILE.equalsIgnoreCase(recTrxDesc.getField(TrxDesc.DESC_CODE).toString())) return super.fieldChanged(bDisplayOption, iMoveMode); try { m_record.addNew(); } catch (DBException e) { } return DBConstants.NORMAL_RETURN; }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
/** * The Field has Changed. * If the flag is true, do inherited (read secondary), otherwise do initRecord. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (m_convFlag.getState()) return super.fieldChanged(bDisplayOption, iMoveMode); else { try { m_record.initRecord(bDisplayOption); // Clear the fields m_record.addNew(); } catch(DBException ex) { ex.printStackTrace(); // Never } } return DBConstants.NORMAL_RETURN; } }
this.fieldChanged(DBConstants.DISPLAY, DBConstants.READ_MOVE); // SCREEN_MOVE says this is coming from here
this.fieldChanged(DBConstants.DISPLAY, DBConstants.READ_MOVE); // SCREEN_MOVE says this is coming from here
this.fieldChanged(DBConstants.DISPLAY, DBConstants.READ_MOVE); // SCREEN_MOVE says this is coming from here