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
"entry" accepts a style attribute which can take:<div><div>=A0=A0=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'auto': {'Label': _('Au=
tomatic')},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'defaul=
t': {'Label': _('Default')},</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'password': {'Label&=
#39;: _('Password/Hidden')},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0'dropdown': {'Label': _('Dropdown/Combo box&=
#39;)},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'listbox': =
{'Label': _('Listbox')},</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'checkbox': {'Label&=
#39;: _('Checkbox')},</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0'multiline': {'Label': _('Multiline-Edit')},</di=
v><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'label': {'Label&#=
39;: _('Label (non-editable)')} },</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==--