Plumtree Tags API  
 

ITagState.GetSharedVariable Method 

Gets a shared variable from memory in the appropriate scope.

The scope determines who can see this variable and how long it stays in memory.

For instance, a variable can only be retrieved from Tag Scope if a tag that includes the current tag added the variable to Tag Scope.

A variable can only be retrieved from Portlet Request Scope if another tag in the portlet stored the variable in memory.

Shared variables can be accessed by tags from any tag library (as opposed to standard variables, which can only be accessed by tags from the same tag library).

Note: Retrieving an HTMLElement from memory that has already been displayed in another tag and then adding more HTML to the original tag is not supported. HTMLElement trees can be retrieved from memory and re-used, as long as they are not modified. The safest way to do this is to make a clone of the cached HTMLElement tree before trying to display it again to make sure there are no threading problems.
object GetSharedVariable(
   string _strKey,
   Scope _scope
);

Parameters

_strKey
_scope

Return Value

Object The requested data. Null if the variable has never been set.

See Also

ITagState Interface | com.plumtree.portaluiinfrastructure.tags Namespace