This object provides an implementation of a persistent MRU (Most Recently Used) list of values. It uses class atg.cim.persistence.RecentValueList
. Only Strings can be persisted.
The following example persists the value C:/ATG/ATG11
as the most recent value to a list named atgpath
:
mRecentlyUsedValue = SessionContext.getRecentValueList()
mRecentlyUsedValue.addToList("atgpath", "C:/ATG/ATG11");
The list of the 5 (or less) latest values in the atgpath
list can be retrieved with this code snippet:
mRecentlyUsedValue = SessionContext.getRecentValueList()
List paths = mRecentlyUsedValue.getList("atgpath", 5);
The list atgpath
can be cleared with this code snippet:
mRecentlyUsedValue = SessionContext.getRecentValueList()
mRecentlyUsedValue.clearList("atgpath");