Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

command button gets disabled after calling jasper report in a new window

Muhammad.RizwanFeb 21 2015 — edited Mar 7 2015

Hi,

I am on jdev 11.1.2.4.

I've followed below link from @"Sameh Nassar" to call jasper report from adf page.

http://sameh-nassar.blogspot.co.uk/2012/12/using-jasper-report-in-adf-application.html

To open report in new window I've done same as suggested in the post

<!-- you can insert inside button which will run the report af:clientListener which call javascript method to open the report in new window

af:commandButton text="Run Report" id="cb1" action="#{jasper.runReportAction}">
  af:clientListener type="action" method="newWindow"/>
/af:commandButton>


and in your jsp page and this javascript method:

function newWindow()
{
document.getElementById("f1").target = "_blank;targetfeatures=toolbar=no location=no directories=no menubar=no";

}

all working fine

My issue is, the command button gets disabled after calling the report and I can't run the same report with different parameters.

any ideas, how can I keep command button enabled after calling the method?

thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2015
Added on Feb 21 2015
7 comments
1,267 views