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 SessionStore( SalString sKey, SalString sValue )
The SessionStore method stores a value in the cache and keeps it there during the entire session. The value is removed form the cache the next time a session is opened (when the user logs on).
Name | Description | SalString sKey | Unique key that identifies the value. | SalString sValue | The value to be stored in the cache. |
---|
The return value is TRUE if the method succeeds and FALSE if it fails.
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 )sIndex = nIndex.ToString(0); sColumn = __sDataSourceView + "." + __sSqlItemDbColumn[nIndex]; // Get name of db column if (!(Var.Cache.SessionRetrieve("FNDCLI.IID_PROP." + sColumn, ref __sIidDbColumn))) { if (DbPLSQLBlock(cSessionManager.c_hSql, "&AO.Reference_SYS.Get_IID_Properties
( :hWndForm.cDialogQueryParams.__sIidDbColumn,
:hWndForm.cDialogQueryParams.__sDataSourceView,
:hWndForm.cDialogQueryParams.__sSqlItemDbColumn[ " + sIndex + " ] )")) { Var.Cache.SessionStore("FNDCLI.IID_PROP." + sColumn, __sIidDbColumn); } else { return false; } }