As a general rule, the values stored in action diagram fields are local to the function concerned. Updating the value of a field in one function does not change the value in another function, unless the field concerned is explicitly passed as an input or output parameter on a function call.
Graphical user interfaces such as Windows enable multiple functions to run asynchronously. In such situations, it is useful to share data across multiple functions. Our Project Wizard is a case in point, where we need the Project ID to be available to both parts of the wizard.
This type of global data storage is provided by the SharedData variable. The Pattern Library provides additional processing (in the Get SharedData Values and Set SharedData Values subroutines) that maintains the values of the fields concerned in an area of memory that is available to all the functions in a single Windows client application.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |