Steps for generating popup menus for updateable text items
1. Copy shipped Template Form ofgwebt.fmb to myofgwebt.fmb (both are in ORACLE_HOMECGENF61ADMIN)
2. Copy shipped OLB Maintenance Form ofgwebol.fmb to myofgwebol.fmb (they are in the same directory)
3. Modify myofgwebt.fmb (or whatever the template form is you are using)
4. Modify the Object Library Maintenance Form
Set the property Popup Menu for the Item CGSO$CHAR to the Popup Menu TEXT_ITEM_MENU. Make sure that this property is set to null for the CGSO$CHAR_DO (for display only) as we do not want to have this popup menu linked to display only items.
5. Use the fm2lib61 utility to create the latest version of the Object Library
6. Generate a Form from a Module with Template and Object Library referenced
From the Design Editor in Oracle Designer – where I have previously created a Module definition for a Master-Detail form on Departments and Employees – I will now generate a form with the Popup Menu attached to the Text Items. When generating, I specify the correct template form and object library:
The generated form contains the TEXT_ITEM_MENU – copied by OFG from the Template Form – and its text items subclass from CGSO$CHAR (or its more refined sub-items such as CGSO$CHAR_MD) and hence have their Popup Menu property set to TEXT_ITEM_MENU:
is manipulated as instructed: