OpenWGA 7.9 - TMLScript reference

WGA
Method :

serializeObject(object)

On object WGA
Usage Serializes an object to an encrypted string
Description The resulting string is a representation of the given object as string which is compressed as well as encrypted. It works with trivial data objects like Strings, Numbers, Booleans or Dates, also with Lists, Lookup tables or JavaBeans containing those type of objects. It will NOT work with custom TMLScript objects.

Uses this function to either use complex objects on places that only allow strings (for example on WebTML action parameters) or to prevent any data from being manipulated by the browser user when needs to be transported to and returned from the browser.

Use WGA.deserializeObject() to convert the string back to the originating object.

For backward compatibility there still is a global function "serializeObject()" available whose use is discouraged since OpenWGA 5.3.

Parameters object (Type see description):
Object to serialize
Return value The serialized object as encrypted string
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events