public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";
public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";
public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";