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.
If u want pass the parameter then use the following syntax.
form:responsibilityApplicationShortName:responsibilityKey:securityGroupKey:functionName:param1=value1 param2=value2 param3=value3
Hi,
ReplyDeleteI'm calling the concurrent request form in same way as you did, but I'm not able to pass the concurrent parameters.
Could you please let me know how can it be done.
Thanks,
Vivek