10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Build a Frame DynamicallyHow You Can Compile and Run the New FrameThis section presents a sample dynamic application that contains two frames,the starting frame and the dynamic frame:• The starting frameThe starting frame is created in OpenROAD Workbench. This framecontains one option field (providing a list of tables) and one menu item,File (with Go and Close submenu options). The following figure illustratesthe dynamic application's starting frame:• The dynamic frameThe frame called by the starting frame is built dynamically and containsone field for every column in the selected table. This frame contains a Filemenu option (with two submenu options: Commit and Close, and Rollbackand Close) and an Edit menu option (with Delete, Update, and Nextsubmenu options). The generated frame lets the user edit the data in thefields, 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 associatedwith the starting frame. Each of the following subsections describe a portion ofthe starting frame's script and the role that it plays in the dynamic application.Creating a Frame at Runtime 397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!