This content has been marked as final. Show 22 replies
I have to admit, I never gave this a thought, but this can be a very common requirement.
As a workaround I can suggest this.
1. Create the button
2. Have the Destination URL set to a new OAF page
3. In the PR of the new page, do the validation and redirect back to the page where you created the button.
In the PR of the new page, just redirect to the page where you created the button and in PR of the page do your validation.
very crude solution I know, but cannot think of anything else.
Now, you can catch this event in process form request as
what has to be given for ''DefaultFormName'' in the command
i have tried with the same command.i created a new project and a page and i created only 1 button inside it.
i have given a message in process form request inside if((("abc").equals(pageContext.getParameter("XXX")))).
it is giving message in log and it is giving me the following error.
oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidObjNameException: JBO-25005: Object name for type View Object is invalid.
also see the log
JRAD_PERF : /xxx/oracle/apps/xxcc/cc/webui/DownloadPG - processRequest : 235ms
JRAD_PERF : /xxx/oracle/apps/xxcc/cc/webui/DownloadPG - preparePage : 453ms
JRAD_PERF : /xxx/oracle/apps/xxcc/cc/webui/DownloadPG - renderDocument : 31ms
----------after button click-------------------------
got it ----this is message i given
JRAD_PERF : /xxx/oracle/apps/xxcc/cc/webui/DownloadPG - preparePage : 47ms
JRAD_PERF : /xxx/oracle/apps/xxcc/cc/webui/DownloadPG - renderDocument : 47ms
You don't have to enter anything for defaultformname, just keep it as it is. This function will just submit the page with parametre XXX value as "abc".Also remember attach this function only to item of "button" type and not "submit button" type.