Hi Omar,
I think you should use lookupWidget instead of getChild. getChild only gets
you the direct child of the form-root. You could either write
form.getChild("name").getChild("firstname").getValue();
Or
form.lookupWidget("name/firstname").getValue();
Hope this helps.
Regards,
Chris
[ c h r i s t o f e r d u t z ]
IT-Berater
univativ GmbH & Co. KG
Robert-Bosch-Str. 7, 64293 Darmstadt
fon: 0 61 51 / 66 717 - 21
fax: 0 61 51 / 66 717 - 29
email: [EMAIL PROTECTED]
http://www.univativ.de
Darmstadt, Stuttgart, Karlsruhe, Düsseldorf
-----Ursprüngliche Nachricht-----
Von: Omar Adobati [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 30. August 2006 09:39
An: [email protected]
Betreff: Re: CForm Definition and CForm Template issue
Actually, with the suggestions retrieved by the ML the form is well
displayed but... it doesn't work when I try to submit it. I have back
an error that says:
org.mozilla.javascript.EcmaError: Cannot convert null to an object.
and it refers to the line of code in the javascript file:
"firstname" : form.getChild("firstname").getValue(),
"lastname" : form.getChild("lastname").getValue(),
I think it's about the group tags I use, but I also think that should
be a way to do this job modifying the code in the flow script file...
where I can find a reference? Does anyone could help me again?
Thanks a lot
Omar
On 8/29/06, Mark Lundquist <[EMAIL PROTECTED]> wrote:
>
> On Aug 29, 2006, at 7:50 AM, Omar Adobati wrote:
>
> > Do I need a <fd:widgets> for each <fd:field> or I could have just one
> > <fd:widgets> for each <fd:group> tag?
>
> Just one. I think it _has_ to be that way.
> ml
--
Dr. Omar Adobati
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]