|
1417
Points
|
15
Groups
|
55
Friends
|
1
Photo
|
213
Activities
|
I had this requirement where I had to pass the url generated in OAF to Java script. In Javascript I have a link, when clicked needs to go back to OAF page. The problem I had was when I pass just "OA.jsp?OAFunc=<functionname> it was throwing me an error.
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Then I found out that a new parameter oas needs to be also passed.
Import the below statements:
import oracle.apps.fnd.framework.server.OADBTransactionImpl;
import oracle.apps.fnd.common.URLTools;
import oracle.apps.fnd.common.WebAppsContext;
Below code will help to generate the url with oas parameter:
String sourceUrl="OA.jsp?OAFunc=<function name>
WebAppsContext wctx = (WebAppsContext)((OADBTransactionImpl) pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext();
String secureUrl = URLTools.generateSecureURL (sourceUrl, wctx);
| Thursday, 06 October 2011 03:46 | |
| | |
| Thursday, 09 December 2010 18:49 | |
| | |
| Thursday, 09 December 2010 18:49 | |
| | |
| Wednesday, 13 October 2010 22:17 | |
| | |
| Saturday, 04 September 2010 20:49 | |
| | |
| Saturday, 04 September 2010 20:16 | |
| | |
| Friday, 12 March 2010 00:46 | |
| | |
| Thursday, 05 November 2009 16:51 | |
| | |
| Thursday, 05 November 2009 15:21 | |
| | |
| Sunday, 11 October 2009 02:43 | |
| | |