14. Creating a Frame at Runtime
 
Share this page                  
Creating a Frame at Runtime
Overview
This chapter describes how to build a frame at runtime, illustrating the following concepts and procedures:
Creating a frame and setting its attributes
Creating the frame's form and fields
Creating the frame's menu
Creating the frame's script
Creating the FrameSource object
Attaching the frame to the application
Compiling and running the frame
Dynamic statement considerations
The example frame created in this chapter lets the user select a database table and displays the table columns as fields on a form. The DynamicFrame frame creates every aspect of the frame from scratch. The DynamicFrame frame also differs from the DynamicQuery frame in that it displays selected data in simple fields.
For a discussion of changing the behavior of a frame or field at runtime by changing the setting of frame modes and field biases, creating a composite field dynamically, and modifying a table field dynamically, see Creating Dynamic Frames (see Creating Dynamic Frames).
For a discussion of creating the lines in a line chart dynamically based on data in the database, see the Workbench User Guide.