Kbase P162439: How to return the handle to a private temp-table from a method in a class?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  24/03/2010 |
|
Status: Unverified
GOAL:
How to return the handle to a private temp-table from a method in a class?
GOAL:
How can I get access to a temp-table defined in one class from another class?
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.2x
FIX:
One way to allow access to a statically defined temp-table in a class from outside the class is to have a method that returns the default buffer handle for the temp-table. This handle could be used to create dynamic buffers and dynamic queries against the temp-table. Sample code is shown below:
CLASS Class1:
DEFINE PRIVATE TEMP-TABLE ttCustomer LIKE Customer.
METHOD PUBLIC HANDLE GetTempTableHandle( ):
RETURN TEMP-TABLE ttCustomer:DEFAULT-BUFFER-HANDLE.
END METHOD.
END CLASS.