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.
|
|
|
|