[ic] table_editor ui_te_check not showing label

Bill Carr bill at bottlenose-wine.com
Wed Oct 4 12:28:38 EDT 2006


Hello ICers,
When I set CGI->ui_te_check:field and ui_te_label:field the label is  
not showing for the given field from the table_editor tag. If I  
remove ui_te_check:field the label shows. Below is a little chunk of  
my stuff.

[perl]
	for(@fields) {
		next if $Tag->data('mv_metadata','code',qq{custview::userdb::$_});
		my $meta = Vend::Table::Editor::meta_record(qq{userdb::$_});
		$CGI->{'ui_te_label:fname'} = $meta->{label} || 'First Name';
		$CGI->{'ui_te_check:fname'} = 'required Please enter your First  
Name.';
	}
[/perl]

[table-editor
	cgi=1
	table=userdb
	mv_data_fields=`$CGI->{mv_data_fields}`
	incomplete_form_ok=1
	defaults=1
	default_ref=`$Values`
]{:REST}[/table-editor]
The above does not show a label for 'fname' field.


It is somewhat of a hack. What I ultimately would like to do is  
specify default options in the table_editor tag as follows

[table-editor
	label.fname = 'First Name'
	check.fname =  'required Please enter your First Name.'
]

And then be able to override those values in mv_metadata. The reason  
is the above table_editor appears on a page that is shared by many  
catalogs. It would be ready to go with appropriate defaults that  
could be easily overridden using the mv_metadata facility on a per  
catalog basis.

Is there some kind of default_metadata_from_options switch for the  
table_editor?

Bill Carr
Bottlenose - Wine & Spirits eBusiness Specialists



More information about the interchange-users mailing list