In Oracle Application Framework (OAF), you can use the getXSID() method of the OAFwkUtil class to get the current XSID (cross-session ID). The XSID is a unique identifier that is generated for each user session in OAF.
Here is an example of how you might use the getXSID() method in an OAF application:
Sql for this : select XSID from icx_sessions
Simple , You can use this (import this before any work WebAppsContext)
String xsid = webAppsContext.getEnvStore().setEnv("ICX_SESSION_COOKIE_VALUE");
Explanation:If you are trying to retrieve the value of the ICX_SESSION_COOKIE_VALUE environment variable and store it in a variable called xsid, you can use the getEnvStore().setEnv() method of the webAppsContext object in your code. This method will retrieve the value of the specified environment variable and store it in the xsid variable.
It is important to note that the getEnvStore().setEnv() method will only work if the ICX_SESSION_COOKIE_VALUE environment variable has been set in the environment where your code is running. If the variable has not been set, the setEnv() method will return null.
I hope this helps clarify how to retrieve the value of an environment variable using the getEnvStore().setEnv() method.
Oracle Tutorial, We have covered all Oracle articles which includes Oracle Database, Application, Framework, Oracle HRM, ADF Training and Financial Training. Further more we have queries and scripts for Oracle EBS Modules.
Subscribe to:
Post Comments (Atom)
How To: Remove all rows from view object (VO) in OAF & ADF
This is the basic requirement when we are working with oracle OAF. In which we need to removed the all rows from the table. The best use ca...
-
Create Type Loop_Type is table of Varchar2(400) Create or Replace Function Find_Loop_F (P_End_loop in NUmber Default 10) Return Loop_Typ...
-
Run JavaScript Method in Java / ADF & OAF ** it is not Oracle standard. Example Code : try { ScriptEngineManager manager ...
-
The exact lines of Developers’ guide for use JavaScript are as follows: “UIX and the OA Framework are rapidly adding new features to provide...
No comments:
Post a Comment