Hi,
sometimes, I will need to save some information in the session that can be shared by all the forms in that session.
How can this be done?
Thanks,
Xiaoli
Global variables or share info among forms
Moderators: Jon, Steve, Ian, Dave
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
asperion
- Ebase User
- Posts: 8
- Joined: Sat Feb 02, 2013 8:24 pm
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
Steve
- Moderator

- Posts: 423
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi,
The session methods can be found in client.getFormSession();
So to set a form session attribute in JavaScript:
Jon mentioned encryption. If you wanted to encrypt your data, you will need to use encryption services:
Steve
The session methods can be found in client.getFormSession();
So to set a form session attribute in JavaScript:
Code: Select all
client.getFormSession().setFormSessionAttribute("myAttribute", "Hello");
Code: Select all
//encrypt
var encrypted = EncryptionServices.encrypt("Hello");
//decrypt
var decrypted = EncryptionServices.decrypt(encrypted);
0 x
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Who is online
Users browsing this forum: No registered users and 40 guests