Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean SessionRetrieve( SalString sKey, ref SalString sValue )
The SessionRetrieve method retrieves a value from the cache object that has been stored during the same session by calling Var.Cache.SessionStore.
Name | Description | SalString sKey | Unique key that identifies the value. | Receive String: sValue | The value retrieved from the cache. The value of sValue remains unchanged if the key is not found in the cache. |
---|
The return value is TRUE if the key was found in the cache, FALSE otherwise.
If Not Cache.SessionRetrieve( 'UserInfo.EmpNo', sEmpNo ) If DbPLSQLBlock( c_hSql, 'Employee_API.Get_Emp_No( :sFndUser, :sBind ) Set sEmpNo = sBind Call Cache.SessionStore( 'UserInfo.EmpNo', sEmpNo Call Cache.SessionStore( 'UserInfo.EmpNo', sEmpNo )if (!(Var.Cache.SessionRetrieve(sKey, ref Var.__g_Bind.ls.GetArray(2)[2]))) { Var.__g_Bind.ls[0] = Int.FndUser(); Var.__g_Bind.ls[1] = "SMTP_MAIL_ADDRESS"; Sal.WaitCursor(true); DbPLSQLBlock(cSessionManager.c_hSql, ":__g_Bind.ls[2] := &AO.Fnd_User_Property_API.Get_Value( :__g_Bind.ls[0], :__g_Bind.ls[1] )"); Var.Cache.SessionStore(sKey, Var.__g_Bind.ls[2]); Sal.WaitCursor(false); }