/** * Move the HTML input to the screen record fields. * @param strSuffix Only move fields with the suffix. * @return true if one was moved. * @exception DBException File exception. */ public int setSFieldToProperty(String strSuffix, boolean bDisplayOption, int iMoveMode) { int iErrorCode = Constant.NORMAL_RETURN; for (int iIndex = 0; iIndex < this.getSFieldCount(); iIndex++) { ScreenField sField = this.getSField(iIndex); int iErrorCode2 = sField.setSFieldToProperty(strSuffix, bDisplayOption, iMoveMode); if (iErrorCode2 != Constant.NORMAL_RETURN) iErrorCode = iErrorCode2; } return iErrorCode; } /**
/** * Move the HTML input to the screen record fields. * @param strSuffix Only move fields with the suffix. * @return true if one was moved. * @exception DBException File exception. */ public int setSFieldToProperty(String strSuffix, boolean bDisplayOption, int iMoveMode) { int iErrorCode = DBConstants.NORMAL_RETURN; for (int iIndex = 0; iIndex < this.getSFieldCount(); iIndex++) { ScreenField sField = this.getSField(iIndex); int iErrorCode2 = sField.setSFieldToProperty(strSuffix, bDisplayOption, iMoveMode); if (iErrorCode2 != DBConstants.NORMAL_RETURN) iErrorCode = iErrorCode2; } return iErrorCode; } /**
/** * This is a utility method to simplify setting a single field to the field's property. * @return The error code on set. */ public int setSFieldToProperty() { int iErrorCode = DBConstants.NORMAL_RETURN; m_bJustChanged = false; for (int iComponent = 0; ; iComponent++) { ScreenField sField = (ScreenField)this.getComponent(iComponent); if (sField == null) break; iErrorCode = sField.setSFieldToProperty(null, DBConstants.DISPLAY, DBConstants.READ_MOVE); } if (iErrorCode == DBConstants.NORMAL_RETURN) if (!this.isJustModified()) if (this.getComponent(0) != null) { ScreenField sField = (ScreenField)this.getComponent(0); BasePanel parentScreen = sField.getParentScreen(); String strParam = this.getFieldName(false, true); String strParamValue = parentScreen.getProperty(strParam); if (strParamValue != null) this.setString(strParamValue, DBConstants.DISPLAY, DBConstants.READ_MOVE); } return iErrorCode; } /**
/** * This is a utility method to simplify setting a single field to the field's property. * @return The error code on set. */ public int setSFieldToProperty() { int iErrorCode = DBConstants.NORMAL_RETURN; m_bJustChanged = false; for (int iComponent = 0; ; iComponent++) { ScreenField sField = (ScreenField)this.getComponent(iComponent); if (sField == null) break; iErrorCode = sField.setSFieldToProperty(null, DBConstants.DISPLAY, DBConstants.READ_MOVE); } if (iErrorCode == DBConstants.NORMAL_RETURN) if (!this.isJustModified()) if (this.getComponent(0) != null) { ScreenField sField = (ScreenField)this.getComponent(0); BasePanel parentScreen = sField.getParentScreen(); String strParam = this.getFieldName(false, true); String strParamValue = parentScreen.getProperty(strParam); if (strParamValue != null) this.setString(strParamValue, DBConstants.DISPLAY, DBConstants.READ_MOVE); } return iErrorCode; } /**