|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Select*ListBox ordering of labelsHi,
I use currently version nuxeo-dm-5.2.1-I20090907_0306. I encountered some problems with ordering labels in my listboxes. Here you can see one of my widget definition. What I need = listing of all my directory with "label" Problem = listboxes are ordered by Id and not Label (or, label must be the default value, but I override it in property "sortCriteria"). Is this a bug in nuxeo ? Is this a false definition by me ? Have I to RTFM (if yes, wich chapter?) ? thanks a lot my directory contrib : ... <directory name="classespharmacotherapeutiques"> <schema>vocabulary</schema> <dataSource>java:/nxsqldirectory</dataSource> <table>classespharmacotherapeutiques </table> <idField>idl</idField> <autoincrementIdField>false</autoincrementIdField> <dataFile>directories/classespharmacotherapeutiques.csv </dataFile> <createTablePolicy>on_missing_columns </createTablePolicy> </directory> .... .... <directory name="classespharmacotherapeutiques" layout="vocabulary" sortField="label" /> note : this works well for GUI acces to directories .... extract of my layout-contrib : <widget name="classespharmacotherapeutiques" type="selectManyDirectory"> <labels> <label mode="any">Pharmacotherapeutical classes </label> </labels> <fields> <field>nt:classespharmacotherapeutiquesId</field> </fields> <translated>true</translated> <widgetModes> <mode name="create">edit</mode> <mode value="edit">edit</mode> <mode name="any">view</mode> </widgetModes> <properties mode="any"> <property name="directoryName">classespharmacotherapeutiques </property> <property name="sortCriteria">label</property> </properties> <properties mode="edit"> <property name="directoryName">classespharmacotherapeutiques </property> <property name="validator">#{clValidator.validate}</property> <property name="sortCriteria">label</property> </properties> </widget> -- Posted by "meghRF4" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2982#8762> _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Select*ListBox ordering of labelsHello,
if you try to sort your localized items, this was fixed by http://jira.nuxeo.org/browse/NXP-3956. So you'll have to work with a more recent version of Nuxeo. To ordre by label, you have to add the property "ordering" instead of "sortCriteria" in your widget definition: <property name="ordering">label</property> Thierry -- Posted by "tmartins" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2982#8800> _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
|
|
Re: Select*ListBox ordering of labelsYes, I saw it a little to late. So "ordering" is the new property whith my version. Thanks
-- Posted by "meghRF4" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2982#8816> _______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
| Free embeddable forum powered by Nabble | Forum Help |