Re: [gnome-db] Making a field mandatory in a form/grid



On 1/31/07, Johannes Schmid <johannes schmid gmx de> wrote:
Hi!

Is it possible to make a field/parameter of a GnomeDbForm or GnomeDbGrid
mandatory? The user should be able to enter any text in the field so it
should not be restricted by a combo box but the field should not be empty.


Just get a pointer to the GdaParameter and call
gda_parameter_set_not_null() _before_ creating the form or grid (if
you do it after, then it will work but the label for the parameter in
the form won't have the little '*' at the end meaning the entry is
mandatory, though this could be corrected).

Regards,

Vivien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]