Foros de discusión

Using service builder in Ext

thumbnail
Albert Devarajan, modificado hace 11 años.

Using service builder in Ext

New Member Mensajes: 21 Fecha de incorporación: 12/12/12 Mensajes recientes
I want to add one field to the default user table . How can I do it ??I am using Liferay 6.1 + Eclipse IDE +Mysql.
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Using service builder in Ext

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
Hi,

Without touching Liferay user services, we can achieve this through Custom Attribute . Liferay provides Custom field feature . It will extend the user service through Expando bridge . Please refer this document :

Adding Custom field for User



- Gnaniyar Zubair
thumbnail
Albert Devarajan, modificado hace 11 años.

RE: Using service builder in Ext

New Member Mensajes: 21 Fecha de incorporación: 12/12/12 Mensajes recientes
@Gnaniyar: I tried this already but its displaying as text area ..how can i change to text input field??
Also how can i retrieve custom field data in another portlet
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Using service builder in Ext

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
There many articles on expando. Try googling them.

Sample:
http://www.liferay.com/community/wiki/-/wiki/Main/Developing+with+Expando
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Using service builder in Ext

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
Hi,

You have to select , there is one TEXT FIELD instead of TEXT While creating custom field.

You can received the custom field like this in any portlet :

user.getExpandoBridge().getAttribute("customFieldName");


HTH

- Gnaniyar Zubair
thumbnail
Albert Devarajan, modificado hace 11 años.

RE: Using service builder in Ext

New Member Mensajes: 21 Fecha de incorporación: 12/12/12 Mensajes recientes
How to get the custom field value added to an organization?
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Using service builder in Ext (Respuesta)

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
Each entity has expando bridge method.

<Entity>.getExpandoBridge().getAttribute("CUSTOM-FIELD");

<Entity>.getExpandoBridge().setAttribute("CUSTOM_FIELD","VALUE");
thumbnail
Albert Devarajan, modificado hace 11 años.

RE: Using service builder in Ext

New Member Mensajes: 21 Fecha de incorporación: 12/12/12 Mensajes recientes
organization.getExpandoBridge().getAttribute("CUSTOM-FIELD");

When i tried like this i am getting a error???organization cannot be resolved
thumbnail
Gnaniyar Zubair, modificado hace 11 años.

RE: Using service builder in Ext

Liferay Master Mensajes: 722 Fecha de incorporación: 19/12/07 Mensajes recientes
do you have organization object..?