Foros de discusión
How to make Custome Field Column as Dropdown
Michel Falkner, modificado hace 9 años.
How to make Custome Field Column as Dropdown
Junior Member Mensajes: 54 Fecha de incorporación: 10/08/14 Mensajes recientes
Hi Team,
I can able to create a custom field through expando API. but how to make it custom field as dropdown list.
If you have any to make it as dropdown.
Regards
Michel
I can able to create a custom field through expando API. but how to make it custom field as dropdown list.
If you have any to make it as dropdown.
Regards
Michel
Tanweer Ahmed ., modificado hace 1 año.
RE: How to make Custome Field Column as Dropdown
Expert Mensajes: 322 Fecha de incorporación: 11/03/10 Mensajes recientes
Hi Michel,
Did you try the " Selection of Text Values " option while creating the column ?
Regards,
Tanweer.
Did you try the " Selection of Text Values " option while creating the column ?
Regards,
Tanweer.
Manikantha Rajamani, modificado hace 9 años.
RE: How to make Custome Field Column as Dropdown
Expert Mensajes: 258 Fecha de incorporación: 25/03/14 Mensajes recientes
Hi Michel Falkner,
Create Custom field with group of text as type.and enter what are the values u need in that droup down.
use that custom field where you want.
please refer attached two files for creating custom field as group of text and using of that droup down.
Regards
Manikantha R
Create Custom field with group of text as type.and enter what are the values u need in that droup down.
use that custom field where you want.
please refer attached two files for creating custom field as group of text and using of that droup down.
Regards
Manikantha R
Archivos adjuntos:
Michel Falkner, modificado hace 9 años.
RE: How to make Custome Field Column as Dropdown
Junior Member Mensajes: 54 Fecha de incorporación: 10/08/14 Mensajes recientes
Hi ,
column = ExpandoColumnLocalServiceUtil.addColumn(
tableId, "comments-astronauts", ExpandoColumnConstants.STRING_ARRAY);
While creating through programatically.
How can i achieve?
Regards
Michel
column = ExpandoColumnLocalServiceUtil.addColumn(
tableId, "comments-astronauts", ExpandoColumnConstants.STRING_ARRAY);
While creating through programatically.
How can i achieve?
Regards
Michel
Tanweer Ahmed ., modificado hace 1 año.
RE: How to make Custome Field Column as Dropdown
Expert Mensajes: 322 Fecha de incorporación: 11/03/10 Mensajes recientes
Hi Michel,
Use the below code to do the same programmatically.
Regards,
Tanweer.
Use the below code to do the same programmatically.
First Add the Expando :
expandoBridge.addAttribute(name, type);
Then Update the Attribute Properties :
UnicodeProperties properties = new UnicodeProperties();
properties.setProperty(ExpandoColumnConstants.PROPERTY_DISPLAY_TYPE, ExpandoColumnConstants.PROPERTY_DISPLAY_TYPE_SELECTION_LIST);
expandoBridge.setAttributeProperties(name, properties);
Regards,
Tanweer.
Jitendra Rajput, modificado hace 9 años.
RE: How to make Custome Field Column as Dropdown
Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
If i understood your question correctly then by passing correct type and default values you can create custom field with any type.
i.e Let say for user if you wan to add custom field as drop down with default values.
i.e Let say for user if you wan to add custom field as drop down with default values.
themeDisplay.getUser().getExpandoBridge().addAttribute("custom-field-name", ExpandoColumnConstants.STRING_ARRAY, defaultValues);