/** * String all the non-numeric characters from this string. * @param string input string. * @return The result string. */ public String stripNonNumeric(String string) { return Converter.stripNonNumber(string); } }
/** * 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. */ 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); } }
/** * 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. */ 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); } }
/** * 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. */ 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); } }
/** * Set this property in the user's property area. * @return The user id. */ public String getUserID() { Record recUserInfo = (Record)this.getUserInfo(); if (recUserInfo != null) return Converter.stripNonNumber(recUserInfo.getField(UserInfoModel.ID).toString()); else return super.getUserID(); } /**
/** * Set this property in the user's property area. * @return The user id. */ public String getUserID() { Record recUserInfo = this.getUserInfo(); if (recUserInfo != null) return Converter.stripNonNumber(recUserInfo.getField(UserInfo.kID).toString()); else return super.getUserID(); } /**
String strUserID = Converter.stripNonNumber(application.getUserID()); if (cookie != null) String strUserID = Converter.stripNonNumber(application.getUserID()); if (cookie == null) cookie = new Cookie(HtmlConstants.COOKIE_NAME, strUserID); // Set cookie application = new ServletApplication(null, properties, null); // Find this User's profile strUserID = Converter.stripNonNumber(strUserID); int iOldUserID = -1; try { // First see if strUser is the UserID in string format iOldUserID = -1; String strNewUserID = Converter.stripNonNumber(application.getUserID()); int iNewUserID = -2; if (strNewUserID.length() > 0) String strUserID = Converter.stripNonNumber(application.getUserID()); cookie = new Cookie(HtmlConstants.COOKIE_NAME, strUserID); // Set cookie
String strUserID = Converter.stripNonNumber(application.getUserID()); if (cookie != null) String strUserID = Converter.stripNonNumber(application.getUserID()); if (cookie == null) cookie = new Cookie(HtmlConstants.COOKIE_NAME, strUserID); // Set cookie application = new ServletApplication(null, properties, null); // Find this User's profile strUserID = Converter.stripNonNumber(strUserID); int iOldUserID = -1; try { // First see if strUser is the UserID in string format iOldUserID = -1; String strNewUserID = Converter.stripNonNumber(application.getUserID()); int iNewUserID = -2; if (strNewUserID.length() > 0) String strUserID = Converter.stripNonNumber(application.getUserID()); cookie = new Cookie(HtmlConstants.COOKIE_NAME, strUserID); // Set cookie
strLink = Converter.stripNonNumber(this.getField(Menus.ID).toString());
bookmark = Converter.stripNonNumber(bookmark.toString()); bookmark = new Integer((String)bookmark); } catch (NumberFormatException ex) {
bookmark = Converter.stripNonNumber(bookmark.toString()); bookmark = new Integer((String)bookmark); } catch (NumberFormatException ex) {
bookmark = Converter.stripNonNumber(bookmark.toString()); bookmark = new Integer((String)bookmark); } catch (NumberFormatException ex) {
if (bIsNumeric) strMenu = Converter.stripNonNumber(strMenu); recMenus.setKeyArea(MenusModel.ID_KEY); recMenus.getField(MenusModel.ID).setString(strMenu);
if (bIsNumeric) strMenu = Converter.stripNonNumber(strMenu); recMenus.setKeyArea(Menus.kIDKey); recMenus.getField(Menus.kID).setString(strMenu);