Pass the TABLE between sessions
- Last Updated: September 22, 2023
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
If you need to pass a temp-table from one session to a completely separate session, and at
least you have a static temp-table definition on the sending side, then you should use
the TABLE form. Object handles are not meaningful between sessions
because they define memory locations within a single session. And when you pass a handle
you are passing only a pointer to that memory location, not the contents. For this
reason, if you need to pass a static temp-table from an application server session
(that, for example, reads data out of the database and loads it into the table) to a
client session that needs to use the data without a database connection, then use the
TABLE form. You have no choice but to copy all the data from one
session to the other. Again, the two temp-table definitions do not need to be identical.
They need to have the same signature, the same number of fields, and the same data types
in the same order.