Bug 173037 How to get drill-through "action/targetFileType" property at runtime?
My report design contains drill-through hyperlinks to another report design or particular report document. The link target document type is represented by action/targetFileType property in the design XML file, for example: <structure name="action"> <property name="reportName">cust_orders_payments.rptdocument</property> <property name="targetFileType">report-document</property> ... </structure> At runtime, I receive IAction object, for example in a custom IHTMLActionHandler implementation, but it has no targetFileType property. Is it possible to obtain it somehow or is it a bug?
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/emitter/EmbeddedHyperlinkProcessorTest.java
action.setBookmark( bookmark );
		IAction act = new Action( action );
		String url = processor.getURL( act, context );
		assertEquals( url, "#" + bookmark );
	}
	public void testHyperlink( )
	{
		String hyperlink = "hyperlink";
		String target = "target";
		IHyperlinkAction action = new ActionContent( );
		action.setHyperlink( hyperlink, target );
		IAction act = new Action( action );
		String url = processor.getURL( act, context );
		assertEquals( url, hyperlink );
	}
	public void testDrillThrough( )
	{
		String bookmark = "bookmark";
		String reportName = "report";
		HashMap params = new HashMap( );
		params.put( "param1", "string" );
		String goldenUrl = "http://localhost/birt/servlet?__report=report&__format=html&param1=string&__overwrite=true&__bookmark=bookmark";
		IHyperlinkAction action = new ActionContent( );
		action.setDrillThrough( bookmark, true, reportName, params, null,
				"_blank", "html" );
		IAction act = new Action( action );
		String url = processor.getURL( act, context );
		assertEquals( goldenUrl, url );
	}
}