"Save" Function

Top  Previous  Next

Save function is used to save the content of an ADOM to an XML file.

Syntax:

Save(adom-scope:adom-name, file-name)

 

adom-scope

The scope of the ADOM. Values are "r" Request, "s" Session and "a" Application.

adom-name

The name of the ADOM.

file-name

The name of the file to save the ADOM. It can be defined relative to the web application's root directory

 

Examples:

Save(s:cart, 'cart.xml')

Save the content of the session ADOM cart as XML to file {WEB_APPLICATION_DIR}\cart.xml.

Save(s:cart, '/usr/tmp/' + s:/mor_security_userinfo^1.username + '/cart.xml')

Save the content of the session ADOM cart as XML to file /usr/tmp/user1/cart.xml. The name of the current user is assumed to be 'user1'.