Use a temp-table as a parameter
- Last Updated: April 29, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The second major use for temp-tables is to let you pass a set of data from one routine to another as a parameter. (A routine is a generic term that includes external procedures, internal procedures, and user-defined-functions. You learn more about user-defined functions in Define Functions and Build Super Procedures.)
In particular, passing temp-tables as parameters is useful when you need to pass a set of one or more records from one OpenEdge session to another. This book does not cover the sending of data between an application server session and a client session, but the next test procedure simulates this by building a temp-table in a procedure that has no user interface, and then passing the temp-table to a separate procedure that manages the UI. The UI procedure is the same Customers and Orders window you have been using. You will add a second browse to it to display Order Lines for the currently selected Order.