Programming Guide : 13. Creating Dynamic Frames
 
Share this page                  
Creating Dynamic Frames
 
Overview
Conceptual Background
How You Can Change Field and Frame Appearance and Behavior
How You Can Create and Modify Fields Dynamically
How You Can Remove Fields Dynamically
How You Can Declare a Composite Field's Array Variable Dynamically
How You Can Manipulate Data in Dynamic Fields
How You Can Manage Operations with a Control Button
Overview
In OpenROAD you can develop a single frame that serves multiple purposes by changing the bias and modes of fields and frames created in OpenROAD Workbench. This information is presented in the beginning of this chapter. For example, you can code the frame to change in the following ways:
Display data initially as read only, allowing changes to data only in specified circumstances
Display different data to different users (for example, salary information available only to managers)
Allow the user to specify at runtime the database tables and columns to display and manipulate
The first two operations can be accomplished by changing the bias of form fields and menu items. When several fields are affected, changing the frame's mode simplifies these operations. The third operation requires dynamically creating fields based on user specifications at runtime.
This chapter discusses how to create fields dynamically and how to access the data values of these fields. This chapter also describes the process of creating and modifying fields dynamically and the means for accessing the values of such fields. You will also learn how to create frames whose fields are added or deleted either at frame start-up or while the frame is running.