Chage

$mySubForm->getElement('lock')->setAttribs('id', 'lock' .
$server->getUniqueId());

to

$mySubForm->getElement('lock')->setAttrib('id', 'lock' .
$server->getUniqueId());

Regards,
Saša Stamenković


On Tue, Feb 16, 2010 at 9:06 AM, mathieu.suen <[email protected]>wrote:

> Hi,
>
> How do you setup the id of form element?
> I try this:
>
> $mySubForm->getElement('lock')->id = 'lock' . $server->getUniqueId();
>
> and also:
>
> $mySubForm->getElement('lock')->setAttribs('id', 'lock' .
> $server->getUniqueId());
>
> But non of the above work.
>
> It always yield something like : subForm-myuniqueid-load
>
> Then I decide to look at the code and found out that is completely odd and
> really not well design IMHO.
>
> So if you have any idea thanks
>
> --Mathieu Suen
>
>
>
>
>
>
>

Reply via email to