So the dropdown has a 'prevalue'(text) and 'value'(id); is there any way to edit/create a datatype with a third column which would be a sort of display value for the visible text in the user dropdown? ((to have a user friendly display while the prevalue is put to better use in the code))
How about using the XPath DropDownList datatype with content nodes as the source data - any required meta data could then be added as as regular doctype properties on these nodes ?
An alternative, if you already have the data elsewhere (in an existing SQL database), and (if you are using the uComponents package), is to use SQL DropDownList.
Modifying the dropdown list datatype?
So the dropdown has a 'prevalue'(text) and 'value'(id); is there any way to edit/create a datatype with a third column which would be a sort of display value for the visible text in the user dropdown?
((to have a user friendly display while the prevalue is put to better use in the code))
Hi Tatiana,
How about using the XPath DropDownList datatype with content nodes as the source data - any required meta data could then be added as as regular doctype properties on these nodes ?
HTH,
Hendy
+1 on XPath DropDownList.
An alternative, if you already have the data elsewhere (in an existing SQL database), and (if you are using the uComponents package), is to use SQL DropDownList.
Cheers, Lee.
is working on a reply...