Migrating from IBM Informix 4gl to Genero BDL / User interface topics |
DATABASE stores SCREEN { Id First name Last name [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] } END TABLES customer END ATTRIBUTES f001 = customer.customer_num ; f002 = customer.fname ; f003 = customer.lname ; END INSTRUCTIONS SCREEN RECORD sr_cust[6]( customer.* ); END
The display of the form specification file in GUI mode:
Figure 1. Form displayed not using table widget
With Genero Business Development Language, use a static screen array for applications displayed in dumb terminals, and for GUI applications you can for example use the TABLE container:
DATABASE stores LAYOUT TABLE { Id First name Last name [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] [f001 |f002 |f003 ] } END END TABLES customer END ATTRIBUTES f001 = customer.customer_num ; f002 = customer.fname ; f003 = customer.lname ; END INSTRUCTIONS SCREEN RECORD sr_cust( customer.* ); END
The display of the form specification file is a real table widget, which is resizeable. The .4gl source is untouched.
Figure 2. Form displayed as table widget