/** * Get the command string that will restore this screen. * @return The URL for this screen. */ public String getScreenURL() { String strURL = super.getScreenURL(); if (this.getClass().getName().equals(Screen.class.getName())) { strURL = this.addURLParam(strURL, DBParams.RECORD, this.getMainRecord().getClass().getName()); strURL = this.addURLParam(strURL, DBParams.COMMAND, ThinMenuConstants.FORM); } else strURL = this.addURLParam(strURL, DBParams.SCREEN, this.getClass().getName()); try { if (this.getMainRecord() != null) if ((this.getMainRecord().getEditMode() == Constants.EDIT_IN_PROGRESS) || (this.getMainRecord().getEditMode() == Constants.EDIT_CURRENT)) { String strBookmark = DBConstants.BLANK; if (this.getMainRecord().getHandle(DBConstants.OBJECT_ID_HANDLE) != null) strBookmark = this.getMainRecord().getHandle(DBConstants.OBJECT_ID_HANDLE).toString(); strURL = this.addURLParam(strURL, DBConstants.STRING_OBJECT_ID_HANDLE, strBookmark); } } catch (DBException ex) { ex.printStackTrace(); } return strURL; } /**
/** * Get the command string that will restore this screen. * @return The URL for this screen. */ public String getScreenURL() { String strURL = super.getScreenURL(); if (this.getClass().getName().equals(Screen.class.getName())) { strURL = this.addURLParam(strURL, DBParams.RECORD, this.getMainRecord().getClass().getName()); strURL = this.addURLParam(strURL, DBParams.COMMAND, ThinMenuConstants.FORM); } else strURL = this.addURLParam(strURL, DBParams.SCREEN, this.getClass().getName()); try { if (this.getMainRecord() != null) if ((this.getMainRecord().getEditMode() == Constants.EDIT_IN_PROGRESS) || (this.getMainRecord().getEditMode() == Constants.EDIT_CURRENT)) { String strBookmark = DBConstants.BLANK; if (this.getMainRecord().getHandle(DBConstants.OBJECT_ID_HANDLE) != null) strBookmark = this.getMainRecord().getHandle(DBConstants.OBJECT_ID_HANDLE).toString(); strURL = this.addURLParam(strURL, DBConstants.STRING_OBJECT_ID_HANDLE, strBookmark); } } catch (DBException ex) { ex.printStackTrace(); } return strURL; } /**