[ic] table_editor ui_te_check not showing label

Mike Heins mike at perusion.com
Wed Oct 4 12:54:59 EDT 2006

Quoting Bill Carr (bill at bottlenose-wine.com):
> 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?

No. I would think it might be possible, but someone would have to
look at it and do it. That won't be me anytime soon, too busy.

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".

More information about the interchange-users mailing list