Examples of using style=dropdown and style=listbox in gnue-forms

Kishan Bhat <[email protected]> Sun, 27 Feb 2011 20:09:43 +0530
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
--===============0348508880==
Content-Type: multipart/alternative; boundary=20cf30434204b143c0049d448852

--20cf30434204b143c0049d448852
Content-Type: text/plain; charset=ISO-8859-1

"entry" accepts a style attribute which can take:
                  'auto': {'Label': _('Automatic')},
                  'default': {'Label': _('Default')},
                  'password': {'Label': _('Password/Hidden')},
                  'dropdown': {'Label': _('Dropdown/Combo box')},
                  'listbox': {'Label': _('Listbox')},
                  'checkbox': {'Label': _('Checkbox')},
                  'multiline': {'Label': _('Multiline-Edit')},
                  'label': {'Label': _('Label (non-editable)')} },

Label and multiline worked fine for me. But how do I use dropdown and
listbox? Can someone help me with an example?

Note: Without defining a style, I can get a dropdown (though not combobox)
by adding fk_source atrib to a field . Similarly, I get checkbox for boolean
datatype.

Thanks,
Kishan

--20cf30434204b143c0049d448852
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

&quot;entry&quot; accepts a style attribute which can take:<div><div>=A0=A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;auto&#39;: {&#39;Label&#39;: _(&#39;Au=
tomatic&#39;)},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;defaul=
t&#39;: {&#39;Label&#39;: _(&#39;Default&#39;)},</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;password&#39;: {&#39;Label&=
#39;: _(&#39;Password/Hidden&#39;)},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0&#39;dropdown&#39;: {&#39;Label&#39;: _(&#39;Dropdown/Combo box&=
#39;)},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;listbox&#39;: =
{&#39;Label&#39;: _(&#39;Listbox&#39;)},</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;checkbox&#39;: {&#39;Label&=
#39;: _(&#39;Checkbox&#39;)},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0&#39;multiline&#39;: {&#39;Label&#39;: _(&#39;Multiline-Edit&#39;)},</di=
v><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&#39;label&#39;: {&#39;Label&#=
39;: _(&#39;Label (non-editable)&#39;)} },</div>
</div><div><br></div><div>Label and multiline worked fine for me. But how d=
o I use dropdown and listbox? Can someone help me with an example?</div><di=
v><br></div><div>Note: Without defining a style,=A0I can get a dropdown (th=
ough not combobox) by adding fk_source atrib to a field .=A0Similarly, I ge=
t checkbox for boolean datatype.</div>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><d=
iv><br></div><div>Thanks,</div><div>Kishan</div>

--20cf30434204b143c0049d448852--


--===============0348508880==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue

--===============0348508880==--