Friday, 29 April 2022

Calling D2K Form From OAF page

 



Calling D2K Form From OAF

Now we are going to learn about how to call the D2K form from OAF page.

The steps are As follows.

Create the workspace and project.

Create the Application Module.

Create the page and attach the AM and give the window title and title for that page.

Create one Submit button in the page.
After clicking that button it should call the form.

Create one controller to write the code.

Write the following code in the controller.



/* For copy paste */

  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processFormRequest(pageContext, webBean);
   
        if(pageContext.getParameter("submit")!=null)     //give the id of the submit button.
       {
          //form:APPLICATION_SHORT_NAME:RESPONSIBILITY_KEY:DATA_GROUP_NAME
          //:FORM_FUNCTION_NAME
          
          String destination =
          "form:SYSADMIN:SYSTEM_ADMINISTRATOR:STANDARD:FND_FNDSCAUS";
                                    
           pageContext.forwardImmediatelyToForm(destination);
       }
    }


Run the page to see the output.



After clicking the button it will call the Respective form.


No comments:

Post a Comment

Uploading PO Attachments from EBS to FTP Server

 create or replace PROCEDURE xx_upload_po_attachment(errbuff out varchar2, retcode out number)  IS CURSOR cur_new_attmt IS    select ponumbe...