In html_record_form, you'd need to name your checkbox (I think that's the best way to go) something like view_fieldname. Then, in html_record, you'd make it a condition. Something like
if ($in{view_fieldname}) {
print qq|whatever your formatting is for that field|;
}
You would not be able to use the autogenerate feature for this.
One thing to be aware of is that you would be effectively elminating the "List All" feature, unless you did some extra programming.
Note that the full record would always be extracted from the database. The checkbox would just determine which field(s) to display.
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Code:
if ($in{view_fieldname}) {
print qq|whatever your formatting is for that field|;
}
You would not be able to use the autogenerate feature for this.
One thing to be aware of is that you would be effectively elminating the "List All" feature, unless you did some extra programming.
Note that the full record would always be extracted from the database. The checkbox would just determine which field(s) to display.
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.