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.

Chapter 14: Creating Dynamic FramesThis section contains the following topics:Conceptual Background (see page 364)How You Can Change Field and Frame Appearance and Behavior (see page365)How You Can Create and Modify Fields Dynamically (see page 373)How You Can Remove Fields Dynamically (see page 378)How You Can Declare a Composite Field's Array Variable Dynamically(see page 380)How You Can Manipulate Data in Dynamic Fields (see page 382)How You Can Manage Operations with a Control Button (see page 389)In OpenROAD you can develop a single frame that serves multiple purposes bychanging the bias and modes of fields and frames created in OpenROADWorkbench. This information is presented in the beginning of this chapter. Forexample, you can code the frame to change in the following ways:• Display data initially as read only, allowing changes to data only inspecified circumstances• Display different data to different users (for example, salary informationavailable only to managers)• Allow the user to specify at runtime the database tables and columns todisplay and manipulateThe first two operations can be accomplished by changing the bias of formfields and menu items. When several fields are affected, changing the frame'smode simplifies these operations. The third operation requires dynamicallycreating fields based on user specifications at runtime.This chapter discusses how to create fields dynamically and how to access thedata values of these fields. This chapter also describes the process of creatingand modifying fields dynamically and the means for accessing the values ofsuch fields. You will also learn how to create frames whose fields are added ordeleted either at frame start-up or while the frame is running.Creating Dynamic Frames 363

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

Saved successfully!

Ooh no, something went wrong!