Fórum
adding data to user_ table
Mahaboob Basha, modificado 8 Anos atrás.
adding data to user_ table
New Member Postagens: 6 Data de Entrada: 23/04/15 Postagens Recentes
Hello guys ,
i want to create sign up page with 5 filds but i want add these to liferay user_ table so i idk how to do please help me i ll appreciate it.
Thanks in advance,,,,,,,,,,,,,,,,,,,,,,,,,,
i want to create sign up page with 5 filds but i want add these to liferay user_ table so i idk how to do please help me i ll appreciate it.
Thanks in advance,,,,,,,,,,,,,,,,,,,,,,,,,,
David H Nebinger, modificado 8 Anos atrás.
RE: adding data to user_ table
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Wrong, wrong, wrong.
You never modify Liferay tables. They are not yours, forget they even exist.
You have two choices. First is you can leverage expandos to add your fields to User entities. Second option is to create your own entity that has your 5 fields. Use the userId as the primary key on your entity table so they share the same key.
You never modify Liferay tables. They are not yours, forget they even exist.
You have two choices. First is you can leverage expandos to add your fields to User entities. Second option is to create your own entity that has your 5 fields. Use the userId as the primary key on your entity table so they share the same key.
Mahaboob Basha, modificado 8 Anos atrás.
RE: adding data to user_ table
New Member Postagens: 6 Data de Entrada: 23/04/15 Postagens Recentes
thank u so much sir....your every reply helps me lot
Bharamani P Tashildar, modificado 8 Anos atrás.
RE: adding data to user_ table
Junior Member Postagens: 48 Data de Entrada: 27/08/14 Postagens Recentes
HI Sir,
We cant modify user table its true..
Is their any way to add own data using UserLocalServiceUtil..............
Thanks
We cant modify user table its true..
Is their any way to add own data using UserLocalServiceUtil..............
Thanks
Olaf Kock, modificado 8 Anos atrás.
RE: adding data to user_ table
Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens RecentesBharamani P Tashildar:
Is their any way to add own data using UserLocalServiceUtil?
UserLocalService does exactly what it currently does. So the answer to your exact question is "No". However, the answer to the underlying problem "Can I add my own extra data to Liferay's User Management?" is "Yes". On the UI it's called "Custom Fields", the API calls it "Expando". There's ExpandoTableService, ExpandoColumnService and ExpandoValueService (also available in the "Local" flavors). They're specifically made to add custom fields to Liferay's entities.