[Html-widget] How to get the name of the name of the label.

Carl Franks fireartist at gmail.com
Fri May 19 15:10:48 CEST 2006


On 19/05/06, Karl.Moens at marsh.com <Karl.Moens at marsh.com> wrote:

> Someone knows an easy way of getting the label for the element, where all
> you have from the element is it's database-name? I noticed that the
> "_elements" in the widget-object is an array and therefore not easy to get
> access to (unless you iterate through it, but that is not too elegant).

Hmm, this could probably be handled better, but for now, I can only think of:

( $widget->get_elements(name=> $name) )[0]->label

I don't know how to do that in TT though.

Carl



More information about the Html-widget mailing list