STD.System.Workunit.SetWorkunitAppValue ( app, key, value, [ overwrite ])
| app | The application name to set. |
| key | The name of the value to set. |
| value | The value to set. |
| overwrite | A 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