14. Creating a Frame at Runtime : How You Can Build a Frame Dynamically : How You Can Create the Script : How You Can Compile and Run the New Frame
 
Share this page                  
How You Can Compile and Run the New Frame
This section presents a sample dynamic application that contains two frames, the starting frame and the dynamic frame:
The starting frame
The starting frame is created in OpenROAD Workbench. This frame contains one option field (providing a list of tables) and one menu item, File (with Go and Close submenu options). The following figure illustrates the dynamic application's starting frame:
The dynamic frame
The frame called by the starting frame is built dynamically and contains one field for every column in the selected table. This frame contains a File menu option (with two submenu options: Commit and Close, and Rollback and Close) and an Edit menu option (with Delete, Update, and Next submenu options). The generated frame lets the user edit the data in the fields, save or cancel changes, or request the next row of retrieved data.
The following illustrates the dynamic application's generated frame:
All of the application's dynamic work is done in the frame script associated with the starting frame. Each of the following subsections describe a portion of the starting frame's script and the role that it plays in the dynamic application.