JDeveloper and ADF


How to Print or Save JSF Page ?


Folk,Hello. I am developing a Fusion Web Application in JDeveloper 11.1.1.6 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.

Related Links

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 11.1.1.2 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 11.1.1.2
Commit  gives NPE on a Task Flow Method Call

Categories

ORACLE DEV
Fusion Middleware
Database
Replication
Designer Headstart
Database Upgrade
ODBC
Workflow
E-Business Suite Archi...
Customers
Learning Management
Documentation
EBS on Linux
Scheduler
Enterprise Manager
Oracle By Example (OBE)
Desktop Datacenter
Oracle Developer Tools...
.NET Stored Procedures
Integration - B2B
SQL Developer (Korean)
Migration and Moderniz...
Technical Bulletin (Ko...
Automatic Storage Mana...
Business Intelligence ...
General CRM
Product Hub
Hyperion BI & Applicat...
MDM Integration and Bu...
Business Intelligence ...
Identity Management Ar...
Communications Service...
Tuxedo Systems and App...
weblogic.developer.int...
weblogic.developer.int...
weblogic.developer.int...
weblogic.developer.int...
weblogic.developer.int...
weblogic.integration.d...
weblogic.developer.int...
jrockit.developer.inte...
weblogic.eventserver.cep
企业管理器
Primavera Portfolio Ma...
小憩一会
BEA General (Chinese)
Primavera EVM User Com...
Siebel BI (Archived)
OVM Templates
Java Essentials
Java EE (Java Enterpri...
Java HotSpot Virtual M...
Java Web Start & JNLP
Other Topics [ARCHIVE]
HotSpot Internals [ARC...
Java Technologies for ...
Javadoc Tool (Develope...
Accessibility
Signed Applets
Swing [Archive]
Portability & Platform...
Java ME Embedded
Java SE Embedded
エンタープライズ管理
Oracle Database 11g Ex...
Calc Manager
Cloud Computing
Mix Feedback
Siebel (Chinese)
My Oracle Support Comm...
About the Community
Oracle Cloud Services ...
Software-as-a-Service
Oracle Fusion Middlewa...
Spotlight on Success W...
OMC French User Group ...
B2B Marketing
SiteCatalyst
Markies: Extraordinary...
Search Engine Marketing
Canadian B2B Marketers
Oracle Marketing Cloud...
The Modern Marketing Tour
OpenWorld & JavaOne La...
OMC - Industry Solutio...
...
Oracle and TCS Initiat...
Oracle Supply Chain Ma...
Global Trade Management
Oracle x86 Servers
LWUIT
NetBeans
Optimized Solutions
电子商务套件
RAC - Real Application...
Cloud Accelerate
Oracle Management Cloud
Oracle Container Cloud...
Big Data Cloud Infrast...
Java Microservices
JUG Africa Social Group
Oracle Datasource for ...
Coherence Support
WebLogic Server - General
jrockit.developer.inte...
weblogic.aqualogic.dat...
aqualogic.bpm.administ...
Telecom Technology (Ch...
データベース一般

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile