Use the Load Cookie event
action to retrieve data previously saved in the Save Cookie event
action from the application storage for the current user.
About this task
To add a Load Cookie event action
to an object, perform the following steps:
Procedure
- From the Events view, select the object
in the editor window and double-click the event that you want to trigger.
The [objectname] Behavior window
opens.
- Click the Add New Action icon.
The Add New Action window opens.
- Select Load Cookie in
the actions tree and click Next to open the Load
Cookie action parameters window.
Note: To quickly
find the required event action, type the name of the action in the
filter text field.
- Type the name of the key which value you want to retrieve.
- In the Result option area, click Add
New Parameter to create a parameter for saving the value
of the key.
Note: You can save the value of the key to
the existing parameter by selecting parameter type and parameter name
from the Result parameter lists.
- Click Finish to close the Load
Cookie action parameters window and return to the [objectname]
Behavior window.
- Click Apply to apply all actions
that have been added for the event.
- Click OK to close the [objectname]
Behavior window.
Results
The value of the key is loaded to the parameter by the
name of the key from the application storage for the current user.