public BaseField setupField(int iFieldSeq)
    {
        BaseField field = null;
        //if (iFieldSeq == 0)
        //{
        //  field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 1)
        //{
        //  field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
        //  field.setHidden(true);
        //}
        //if (iFieldSeq == 2)
        //{
        //  field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));
        //  field.setHidden(true);
        //}
        if (iFieldSeq == 3)
            field = new StringField(this, PACKAGE_NAME, 30, null, null);
        if (field == null)
            field = super.setupField(iFieldSeq);
        return field;
    }
public BaseField setupField ( int iFieldSeq ) { BaseField field = null ; if ( iFieldSeq == 3 ) field = new StringField ( this , PACKAGE_NAME , 30 , null , null ) ; if ( field == null ) field = super . setupField ( iFieldSeq ) ; return field ; }
Add this field in the Record's field sequence.