Bug 178342 Bookmark hyperlinks are very slow
I designed a report off the sample db that list orders in one table and order details right below. I then added a hyperlink to the top table to link to a bookmark in the details table below. I set the bookmark appropriately. This report works fine when I choos "View Report in Web Viewer" The links are very fast. When I choose "View Report in HTML" The hyperlink is very slow. It appears to be regenerating or something. The report is attached. Jason
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
protected String buildBookmarkAction( IAction action, IReportContext context )
	{
		if ( action == null || context == null )
			return null;
		
		String baseURL = null;
		Object renderContext = getRenderContext( context );
		if ( renderContext instanceof HTMLRenderContext )
		{
			baseURL = ( (HTMLRenderContext) renderContext ).getBaseURL( );
		}
		if ( renderContext instanceof PDFRenderContext )
		{
			baseURL = ( (PDFRenderContext) renderContext ).getBaseURL( );
		}
		if ( baseURL == null )
			return null;
		
		String bookmark = action.getBookmark( );
		
		
		if ( baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_FRAMESET ) > 0
				|| baseURL.lastIndexOf( IBirtConstants.SERVLET_PATH_RUN ) > 0 )
		{
			return "javascript:catchBookmark('" 
					+ ParameterAccessor.htmlEncode( bookmark ) + "')"; 
		}
		
		StringBuffer link = new StringBuffer( );
		boolean realBookmark = false;