CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Tips & Solutions

 Layout of records in grid

Print topic Send  topic

Author Message
Pierre Henriot
Posted: 03/28/2005, 2:18 AM

A problem in CC is often that records in a grid cannot be shown as needed. For example, if you want to display the data inside the same record in two columns, plus some fields at the end spanning both columns, like that:

DATA DATA
DATA DATA
DATA DATA
DATA DATA

TEXT_TEXT_TEXT

You can do this by defining additional fields in the form. For the example shown here, you will need to define one field at the beginning of the table, one at the end of first column, one at the end of second column and one at the end of the table.

Then use the "before show" custom events to assign the html code for layout to these fields.

Example (php):

$fldfield1 = "<table><tr><td>";
$fldfield2 = "</td><td>";
$fldfield3 = "</td></tr><tr><td colspan=2>";
$fldfield4 = "</td></tr></table>";


Pierre Henriot
Posted: 03/28/2005, 7:42 AM

Of course use field type "label" and html.
Variables are case sensitive, so if you have FielD1 in your form, use $fldFielD1 as the variable for the displayed field.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.