SetWorkunitAppValue

STD.System.Workunit.SetWorkunitAppValue ( app, key, value, [ overwrite ])

appThe application name to set.
keyThe name of the value to set.
valueThe value to set.
overwriteA boolean TRUE or FALSE flag indicating whether to allow the value to overwrite an existing value. Default is TRUE..
Return: SetWorkunitAppValue returns TRUE if the value was set successfully.

The SetWorkunitAppValue function sets an application value in the current workunit. It returns TRUE if the value was set successfully.

Example:

IMPORT STD;
STD.System.Workunit.SetWorkunitAppValue('MyApp','FirstName','Jim',TRUE);
OUTPUT(STD.System.Workunit.WorkunitList(appvalues := 'MyApp/FirstName='Jim');
//returns a list of workunits with app values where FirstName='Jim'

See Also: WorkunitList