hook - Issue while inserting the user in liferay -
hook - Issue while inserting the user in liferay -
i have created form has basic user details , on clinking of save button inserting user details in "user_" table calling userlocalserviceutil.adduser(....)
. user creating out issue. not able see form field parameters in userlocalserviceutil.adduser(....)
method (title, gender , date of birth). how can save values. please give me suggestions how can insert next fields (title, gender , date of birth) @ time of user creation.
liferay uses com.liferay.portal.model.contact
entity store contact information.
use com.liferay.portal.service.contactlocalserviceutil.addcontact
method create contact. important parametres:
userid
- id of user creating contact. can utilize portalutil.getuser
method current user request. classname
- "com.liferay.portal.model.user". classpk
- id of new user contact created for. liferay hook liferay-6 liferay-theme liferay-aui
Comments
Post a Comment