Posts

Showing posts with the label ORACLE APPS

Call Concurrent Program from OAF Page

I have seen many developers use fnd_request.submit_request to call the concurrent program from the OAF page, which is not only bad practice also makes controller code cumbersome.  Calling Concurrent request is very much simple , you just need to import the relevant classes and pass the program name and Parameters. //Classes to be imported  import oracle.apps.fnd.cp.request.ConcurrentRequest; import oracle.apps.fnd.cp.request.RequestSubmissionException; OADBTransaction tx=  am.getOADBTransaction();        // Initialize the ConcurrentRequest Class java.sql.Connection con = tx.getJdbcConnection();  ConcurrentRequest requestObject = new ConcurrentRequest(con);       //Application Short name under which the calling concurrent program is registered   String applShortName = "XX";       // Calling Concurrent program Short name     String cpName = "XXCONCSHORTNAME";       ...