Fundamentals of object sharing in Oracle Forms 10g

- You can develop applications much more effectively and efficiently if you are not trying to “start over” each time you write a piece of code. By sharing and reusing frequently used objects and code, you can cut down development time and increase productivity.
- You can decrease maintenance time by creating applications that use or call the same object or piece of code several times.
- You can maintain standards by reusing objects and code.
- Accept default properties as much as possible
- Use SmartClasses to describe an object
- Use sets of visual attributes
- It increases productivity by setting standard or frequently used values for common properties and associates them with several form builder objects.
- It defines standard properties not just for one particular object but also for several at a time. This results in increased productivity, because it eliminates the time spent on setting identical properties for several objects.
- It improves network performance by increasing the efficiency of message diffing.
- Using the Create button in the Object Navigator
- Using the Create Property Class button
- Select the Property Class node.
- Select Create.
- Add the required properties and their values.
- Set the value for that property.
- Select the object in the Object Navigator.
- Select the properties to be copied into a property class in the Property Palette.
- Select the Property Class button.
- Locate the property class and change its name in the Object Navigator.
- To convert an inherited property to a variant property, simply enter a new value over the inherited one.
- To convert a variant property to an inherited property, click the Inherit icon in the Property Palette.
- You can also use the Inherit icon to revert a changed property back to its default.
- Change the structure of the parent, automatically propagating the changes to the child
- Add or change properties to the child to override the inheritance
- Between modules, by dragging objects between the modules in the Object Navigator
- Within a single module by selecting the object in the Object Navigator, pressing [Ctrl], and dragging it to create the new object
- Delete items from the child
- Change the order of items in the child
- Add items to the child unless you add them to the end
- Select the Object Group node in the Object Navigator.
- Select the Create icon.
- Rename the new object group that is displayed.
- Click the form module and expand all the nodes.
- Select all the objects of one type that you want to include in the object group.
- Drag the selected objects into the new object group entry.
- Including a block in an object group also includes its items, the item-level triggers, the block-level triggers and the relations. You cannot use any of these objects in an object group without the block.
- It is not possible to include another object group.
- Deleting an object from a module automatically deletes the object from the object group.
- Deleting an object group from a module does not delete the objects it contains from the module.
- Object libraries are external to the form, so are easily shared among form modules.
- Object libraries can contain individual items; for example, iconic buttons. The smallest unit accepted in an object group is a block.
- Object libraries accept PL/SQL program units.
- If you change an object in an object library, all forms that contain the subclassed object reflect the change.
- Select Tools > Object Library to display the object library.
- Drag objects from the Object Navigator into the object library.
- You can edit the descriptive comment by clicking the Edit icon in the object library interface.
Leave a Reply
Want to join the discussion?Feel free to contribute!