JDeveloper and ADF
How to Print or Save JSF Page ?
Folk,Hello. I am developing a Fusion Web Application in JDeveloper 126.96.36.199 on the top of Oracle Database.I create a project "UserAdmissionApplication" in JDeveloper . The Application is a Business Application Form for user to apply for admission as below: First Name:Last Name:Birth Date:Social Security Number:Address:City:State:Zip:Application Date: Submit The Application Form is ADF Form in JDeveloper. After user submit his Application, the system comes up a message: "You have submitted your Application successfully. Please print or save a copy of your application."Then the system should come up a page with 2 buttons: Print SaveIf users click on "Print" button, the system should print his Application as PDF form (a PDF file). The best is PDF form, if not possible, use other file types.If users click on "Save" button, the system should save his Application. Users have submitted Application successfully. But I don't know how to enable users to "Print" or "Save" his Application. My questions are:1) How to comes up a page with "Print" or "Save" buttons after users "Submit" his Application successfully ?2) How to "Print" or "Save" the Application as pdf file or other file types ? Thanks in advance.
There is nothing out of hte box which lets you generate a pdf from a page. What you can do is use hte showPrintableBehavior tag which you put on a button to get a printable representation of the current page. The user can than use the browsers print function to print the page or save it offline on his/her pc.Read https://www.google.de/url?sa=t&source=web&rct=j&url=http://www.oracle.com/technetwork/developer-tools/adf/learnmore/95-p… which show how to do this. If you want to generate pdf report, you can do this too, but it's more work as you have to use a third party tool like itext, jasper reports or some other report generator. Timo
You can make use of jasper report to create the same design layout as of your form and then on click of button you can call this jasper report. This would show the file as pdf only and now it is upto user if he wants he can save or print. You can follow this how to make use of jasper reports and integerate with adf. Sameh Nassar: Using Jasper Report In ADF Application (Step-by-Step) Cheers,Ajay Taneja
Folk,Hello. Thanks a lot for replying. Let me tell you my project as below: The Business Application Form is actually a Student Admission Application for a University. Its data will be processed into PeopleSoft Campus Solution later. JDeveloper is installed with PeopleSoft Internet Architecture in my computer. In Database table, each applicant is one row of data. PeopleSoft back-end processing already has installed 4 report tools:1) Crystal Report2) SQR Report3) COBOL Report4) Application Engine Report In my point of view, Crystal Report is very good tool to print one row of data from Database table. The other 3 kinds of report tools can be used as well. I can run a Crystal Report or other kinds of report from Database table directly. Because the Applicant fill out the Application Form in JDeveloper. I don't know how to connect JDeveloper with the 4 kinds of PeopleSoft Report Tools. My question is:Is possible to connect JDeveloper with the 4 kinds of PeopleSoft report tools ?That is, can we print a Crystal Report or other 3 kinds of report in JDeveloper ? Thanks in advance.
When you can access one or each of the tools either direct or via peoplesoft, then yes. If you can access them, then no. Timo
Timo Hahn,Hello. Thanks a lot for replying. I don't understand what you mean clearly ! Could you please tell me how to connect JDeveloper JSF page (file name UserApplication.jspx) with PeopleSoft Report tools such as Crystal Report ? Thanks in advance.
Use a Web Service, referPeopleSoft and Fusion Middleware Best Practice Center: Blog Entries
I can't as I don't know how you can connect the two. I do know that you can run crystal reports from the outside and even from jdev (look at Problem during Calling a crystal report from ADF Jdeveloper). Knowing that it's possible in principle, I would say you have to ask thos on a crystal reports forum. There might be an interface using url wiht parameters, but I don't know.Not sure but it might be possible to use peoplesoft which than produces the report and sends it back to you. This you have to ask on the peoplesoft forum. Timo
Folk,Hello. Thanks a lot for replying. After user submit application successfully, it's easy for me to generate a Report directly out of Database table using PeopleSoft Report Tools. But it's hard for the user to generate a report in JDeveloper concurrently when he submit application. The only thing I can do is below:Generate a report seperately using PeopleSoft Report Tools later and sent the report back to user. My question is:Do you think is correct way that generate a report seperately using PeopleSoft Report Tools and send it back to the user later ? Thanks in advance.
It's one way at least. I don't know how the report should look like and depending on the information you gather during the sign up, it might be a good way to send the pdf via mail. The user should be able to print something out right away to him/her to ask for support when the process get stuck somehow. This can be done using the showPrintableBehavior tag showing the information in a printable form. If the pdf report is simple you can rebuild it with another reporting technique. I would do this only if the report is very simple. Generating the report as a back office task and sending it via mail to the student is ok if it doesn't take too long. Timo
Folk,Hello. Thanks a lot for replying. After user submit application successfully, He can print his application in Browser Menu File > Print. But the layout is a Business Form and doesn't look very well ! My question is: Could you please tell me the specific steps to do "showPrintableBehavior tag showing the information in a printable form" ? Thanks in advance.
Here is a simple sample which comes with the whole application as a sample. This should get you started: http://adf.bjorn.co.za/2013/09/adf-basics-printing-behavior.html Timo
Folk,Hello. Thanks a lot for replying. I can Print the page in Browser Menu File > Print. My question is:Why need to use "showPrintablePageBehavior" ? What's the difference with Browser Menu File > Print ? Thanks in advance.
The reson is that the normal page looks 'ugly' having all the buttons and other stuff on them which make no sense when print a page. The printable page allows you to remove all the components you don't want to print. If you look at the samples or into the doc https://docs.oracle.com/cd/E15523_01/web.1111/b31973/ad_output.htm#ADFUI11506 you notice the difference. Timo
Folk,Hello. Thanks a lot for replying. I thinks the issue is solved. Thanks again.
ADF Libraries BUG?
How to make JDeveloper11 remember last chosen managed bean?
ADF 11g Security integration with home grown security application
Confused on validation
Problems with data import to Static view object... Need help...
Jdeveloper 188.8.131.52 default JPA provider
ADF Tree Table
How to show popup programmatically
would like to know
Caused By: java.lang.ClassNotFoundException: oracle.adfinternal.view.faces.
getting Too many objects match the primary key oracle.jbo.Key...
ADF 11g + Task flow parameter map
Effective date in ADF
EntityObject create Row need DMLException
goLink PPR issue in 184.108.40.206
Commit gives NPE on a Task Flow Method Call