|
|
Re: call birt reports from java [message #728677 is a reply to message #728548] |
Fri, 23 September 2011 15:58 |
|
Are you wanting to call the BIRT engine API or a URL to the deployed
BIRT Viewer? What version of BIRT are you using?
Jason
On 9/23/2011 9:16 AM, claudia_fichte wrote:
> Hello,
>
> can you please help me? How it's possible to start a birt report from a
> java class.
> I'm using struts framwork and want to start different reports inside the
> action class. How is this possible? Instead of using javascript I want
> to do this in the action class:
> function loadViewerchartViewer(){
> var formObj = document.getElementById( "form_reports" );
> // plant
> var param = document.createElement( "INPUT" ); //find plant param
> param.type = "HIDDEN";
> param.name = "plant";
> param.value =
> document.getElementById("plantId").options[document.getElementById("plantId").selectedIndex].text;
>
> formObj.appendChild(param);
> //find report name
> param.type = "HIDDEN";
> param.name = "reportId";
> param.value =
> document.getElementById("id").options[document.getElementById("id").selectedIndex].text;
>
> formObj.appendChild(param);
>
> // subfamily
> if (document.getElementById("wert1_2") != null &&
> document.getElementById("wert1_2").selectedIndex > -1) { var param =
> document.createElement( "INPUT" );
> param.type = "HIDDEN";
> param.name = "subfamily";
> param.value=
> document.getElementById("wert1_2").options[document.getElementById("wert1_2").selectedIndex].text;
>
> formObj.appendChild(param);
> }
>
> formObj.action = "
> formObj.target = "_new";
> formObj.submit();
> }
> Can anybody help me?
>
> In the java class I want to start the reports inside this function:
> public void go_onClick(FormActionContext ctx) throws InvalidUserException,
> ParseException, Exception {
> logger.info("go_onclicked Gladius Export action");
> }
>
> Thank you
|
|
|
Powered by
FUDForum. Page generated in 0.03741 seconds