getStoredValue Method

Class: Reference

Description

This method returns a process scope value from a reference object. The Reference.setStoredValue method provides a mechanism to temporarily build a property into an object that does not exist within the database. The property will never be stored in the database, but it is stored within the object so that it can be passed to other labels/routines and referenced within that code. The Reference.getStoredValue method retrieves that stored value from the object.

Syntax

referenceObject.getStoredValue(String tag)

Parameters

tag

The tag parameter used to find the location where PSL stores a value using the Reference.setStoredValue method.

Returns

A String.

When Became Available

Profile v7.0

Example

// Create a reference object with runtime properties only

type Reference REF = Class.new("Reference")

 

// Store a string at a well defined tag

do REF.setStoredValue("Store@","some value")

...

 

// retrieve the value

type String RETRIEVE = REF.getStoredValue("Store@")