Progress
Open Client
Developer’s Guide


Defining a ProcObject That Maps a SmartDataObject

To directly access the SmartDataObject API, you need to use API methods that handle all control and communication with the remote SmartDataObject as required by your application. You can access the SmartDataObject API by defining a ProcObject in ProxyGen that supports this interface. Define the ProcObject to include all of the methods (internal procedures and user-defined functions) you want to access in the specified SmartDataObject instance.

To define the methods for this ProcObject and generate the proxy, you must first make the r-code for the corresponding SmartDataObject available to ProxyGen. You can do this by setting the ProxyGen Propath Components list appropriately. For more information on locating the r-code for a SmartDataObject, see the information on SmartDataObject support in Building Distributed Applications Using the Progress AppServer .

You must also ensure that all parameters, internal procedures, and user-defined functions of the ProcObject allow Progress unknown values (?). To do this in ProxyGen:

  1. In the AppObject tab, check Allow Unknown for parameters and function return values.
  2. In the Customize Persistent Procedure dialog box, check Use AppObject Unknown Setting.

For more information on defining ProcObjects in ProxyGen, see Chapter 3, “Generating and Managing Proxies.”


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095