uri += "&" + ParameterAccessor.PARAM_TOOLBAR + "=" + showToolBar;
uri += "&" + ParameterAccessor.PARAM_TOOLBAR + "=" + urlParamValueEncode( showToolBar );
	public String createURI( String iPattern )	{		String uri = iPattern;		if ( uri == null )			uri = this.pattern;		if ( uri == null )		{			uri = IBirtConstants.VIEWER_FRAMESET;			// frameset doesn't support reportlet. If preview reportlet, force			// to use run pattern.			if ( ( reportDocument != null && reportletId != null )					|| !allowPageBreak )			{				uri = IBirtConstants.VIEWER_RUN;			}		}		// append context root setting		if ( contextRoot != null )			uri = "/" + contextRoot + "/" + uri; //$NON-NLS-1$//$NON-NLS-2$		// append format setting		if ( format != null )		{			uri += "?" + ParameterAccessor.PARAM_FORMAT + "=" //$NON-NLS-1$//$NON-NLS-2$					+ format;		}		else		{			uri += "?" + ParameterAccessor.PARAM_FORMAT + "=" //$NON-NLS-1$//$NON-NLS-2$					+ ParameterAccessor.PARAM_FORMAT_HTML;		}		// append report design		if ( reportDesign != null )			uri += "&" + ParameterAccessor.PARAM_REPORT + "=" + reportDesign; //$NON-NLS-1$ //$NON-NLS-2$		// append report document		if ( reportDocument != null )			uri += "&" + ParameterAccessor.PARAM_REPORT_DOCUMENT + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ reportDocument;		// append reportlet id		if ( reportletId != null )			uri += "&" + ParameterAccessor.PARAM_INSTANCEID + "=" + reportletId; //$NON-NLS-1$ //$NON-NLS-2$		if ( allowPageBreak && id != null )			uri += "&" + ParameterAccessor.PARAM_ID + "=" + id; //$NON-NLS-1$//$NON-NLS-2$		// append report title		if ( allowPageBreak && title != null )			uri += "&" + ParameterAccessor.PARAM_TITLE + "=" + title; //$NON-NLS-1$//$NON-NLS-2$		// append report title		if ( allowPageBreak && showTitle != null )			uri += "&" + ParameterAccessor.PARAM_SHOW_TITLE + "=" + showTitle; //$NON-NLS-1$//$NON-NLS-2$		// append bookmark setting		if ( bookmark != null )			uri += "&" + ParameterAccessor.PARAM_BOOKMARK + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ bookmark;		// append target serlvet pattern setting		if ( !isCustom && pattern != null )			uri += "&" + ParameterAccessor.PARAM_SERVLET_PATTERN + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ pattern;		// append window target setting		if ( !isCustom && target != null )			uri += "&" + ParameterAccessor.PARAM_TARGET + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ target;		// append Locale setting		if ( locale != null )			uri += "&" + ParameterAccessor.PARAM_LOCALE + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ locale;		// append svg setting		if ( svg != null )			uri += "&" + ParameterAccessor.PARAM_SVG + "=" + svg; //$NON-NLS-1$//$NON-NLS-2$		// append rtl setting		if ( rtl != null )			uri += "&" + ParameterAccessor.PARAM_RTL + "=" + rtl; //$NON-NLS-1$ //$NON-NLS-2$		// append masterpage setting		if ( allowMasterPage != null )			uri += "&" + ParameterAccessor.PARAM_MASTERPAGE + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ allowMasterPage;				// append resource folder setting		if ( resourceFolder != null )			uri += "&" + ParameterAccessor.PARAM_RESOURCE_FOLDER + "=" //$NON-NLS-1$//$NON-NLS-2$					+ resourceFolder;		// append maxrows setting		if ( maxRowsOfRecords >= 0 )			uri += "&" + ParameterAccessor.PARAM_MAXROWS + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ maxRowsOfRecords;		// append overwrite document setting		if ( forceOverwriteDocument != null )			uri += "&" + ParameterAccessor.PARAM_OVERWRITE + "=" //$NON-NLS-1$ //$NON-NLS-2$					+ forceOverwriteDocument;		// append parameter prompting setting		if ( forceParameterPrompting != null )			uri += "&" + "__parameterprompting=" + forceParameterPrompting; //$NON-NLS-1$//$NON-NLS-2$		// append show toolbar setting		if ( showToolBar != null )			uri += "&" + ParameterAccessor.PARAM_TOOLBAR + "=" + showToolBar; //$NON-NLS-1$ //$NON-NLS-2$		// append show NavigationBar setting		if ( showNavigationBar != null )			uri += "&" + ParameterAccessor.PARAM_NAVIGATIONBAR + "=" + showNavigationBar; //$NON-NLS-1$ //$NON-NLS-2$		return uri;	}