you say the fields are optional. but if they are empty you want that to
be an invalid state? Are you wanting at least one field filled, but
which one is not important? How does a isAllSet method help you if the
fields are optional?
Need more info.
John McNally
Diogo Saad wrote:
>
> I have a form with some groups mapped to different objects ....
>
> Everything that the user completes in my form I create the object related to the
>group and set it's properties for saving in DB
> My problem is : - How do I know if the user has filled the fields ( I don't want to
>create objects and set it's properties if the form is empty) ?
>
> I can't use the flag required in my intake groups groups cause they aren't required
>fields ... they are optional
>
> There is no method getFieldsArray() in Group class ( i've noticed that there's
>isSet() method in Field class -- it would be usefull to have isAllSet() in Group ..)
>
> How do I create my objects and set their props only if the user has filled the form
>( I can't save an empty obj in DB )
>
> Diogo Saad
> Inter Business Tecnologia e Servi�os
> [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]