public void doValidRecord(boolean bDisplayOption) // Init this field override for other value
    {
    	Record record = this.getOwner();
    	BaseDatabase database = record.getTable().getDatabase();
    	m_bEnableOnValid = true;

    	int counter = (int)record.getCounterField().getValue();
    	String startingID = database.getProperty(BaseDatabase.STARTING_ID);
    	String endingID = database.getProperty(BaseDatabase.ENDING_ID);
    	if (startingID != null)
    		if (counter < Integer.parseInt(Converter.stripNonNumber(startingID)))
    			m_bEnableOnValid = false;
    	if (endingID != null)
    		if (counter > Integer.parseInt(Converter.stripNonNumber(endingID)))
    			m_bEnableOnValid = false;
//    	System.out.println("start, end: " + startingID + "  " + endingID);
        super.doValidRecord(bDisplayOption);
    }
public void doValidRecord ( boolean bDisplayOption ) { Record record = this . getOwner ( ) ; BaseDatabase database = record . getTable ( ) . getDatabase ( ) ; m_bEnableOnValid = true ; int counter = ( int ) record . getCounterField ( ) . getValue ( ) ; String startingID = database . getProperty ( BaseDatabase . STARTING_ID ) ; String endingID = database . getProperty ( BaseDatabase . ENDING_ID ) ; if ( startingID != null ) if ( counter < Integer . parseInt ( Converter . stripNonNumber ( startingID ) ) ) m_bEnableOnValid = false ; if ( endingID != null ) if ( counter > Integer . parseInt ( Converter . stripNonNumber ( endingID ) ) ) m_bEnableOnValid = false ; super . doValidRecord ( bDisplayOption ) ; }
Called when a valid record is read from the table/query.
Enables or disables the target field(s).
@param bDisplayOption If true, display any changes.