Bug 120345 Need a URL generator API from Engine
The Chart Engine needs the ability to generate a viewer URL from an ActionHandle, this can be provided by a Report Engine public API for instance. The URL should usable as is by the viewer without any additional change. The Chart Engine can take care of evaluating the expressions inside the ActionHandle before calling the Report Engine API if necessary.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
else
		{
			scriptContext = new ScriptContext( );
		}
		initailizeScriptContext( scriptContext.getContext( ), scriptContext
				.getRootScope( ) );
		
		
		scriptContext.registerBean( "report", new ReportObject( ) );
		scriptContext.registerBean( "params", params ); 
		scriptContext.registerBean( "config", configs ); 
		scriptContext.registerBean( "currentPage", new Long( pageNumber ) );
		scriptContext.registerBean( "totalPage", new Long( totalPage ) );
	}
	protected void initailizeScriptContext( Context cx, Scriptable scope )
	{
		scriptContext.getContext( ).setWrapFactory( new WrapFactory( ) {
			protected IJavascriptWrapper modelWrapper = new ModelJavaScriptWrapper( );
			protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper( );
			/**
			 * wrapper an java object to javascript object.
			 */
			public Object wrap( Context cx, Scriptable scope, Object obj,
					Class staticType )
			{
				Object object = modelWrapper.wrap( cx, scope, obj, staticType );
				if ( object != obj )
				{
					return object;
				}