Tuesday, July 10, 2018

Pack

The task for this method is to return a container with the information. This can be
used to initialize a similar data manipulation on another computer and/or at
another time. The information packed should be sufficient to communicate
information from the dialog to the data manipulation in the run
-method.
The container should contain a version number as the first element. This number
should control how the rest of the container is structured. If you change the
contents of the container, you should increment the version number.
The pack method frequently has the following basic contents. However, it cannot
be inherited as it contains references to macros defined locally in the class
declaration.



1
2
3
4
public container pack()
{
  return [#CurrentVersion,#CurrentList];
}

The pack/unpack method is used in the following situations:

To save and restore the dialog between each use of the class. The
information is usually saved on a per user/company basis.


To save and restore the specification of the manipulation to execute
on a batch server.


To transfer the object from the client to the server. This is done to
optimize both the user dialog and the data manipulation in an AOS
environment.


Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...