The ProtoGen utility analyzes the source code of any super procedure that you specify and generates an include file containing the prototypes for all of its internal procedures and user-defined functions. You can access this utility from the PRO*Tools palette, which is available from the Tools menu in the ADE.
One of the more common applications of this utility is to generate prototype include files for persistent procedures that you build in the AppBuilder, especially if you build them using SmartObject technology.
To include super procedure prototypes in AppBuilder procedures:
1. Code each super procedure sufficiently to specify all PROCEDURE and FUNCTION statements that it requires.
2. From the ADE, choose PRO*Tools from the Tools menu, and click the ProtoGen button, as shown:
3. In the Prototype Generator dialog box, enter the filename of the super procedure and the name of the include file you want to generate from it.
4. Generate the include file and, using the AppBuilder, insert a reference to the include file within every persistent procedure and SmartObject that relies on the specified super procedure prototypes.
5. Compile and generate the r-code for each persistent procedure and SmartObject.
Once you compile and generate the r-code, the Open Client developer can use the Open Client Toolkit to generate the corresponding proxy object. For more information on using ProtoGen, see the ADE online help and for using the AppBuilder, see OpenEdge Development: AppBuilder.