Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
raghuraman mg
Date and Month of user Birthday
6 de enero de 2009 21:40
Respuesta

raghuraman mg

Ranking: New Member

Mensajes: 12

Fecha de incorporación: 16 de diciembre de 2008

Mensajes recientes

How to get and Display the month and date of account user's birthday?

Replay,
Lari Tuominen
RE: Date and Month of user Birthday
6 de enero de 2009 23:37
Respuesta

Lari Tuominen

Ranking: Expert

Mensajes: 283

Fecha de incorporación: 7 de noviembre de 2007

Mensajes recientes

liferay user (com.liferay.portal.model.user) has a method public Date getBirthday() that returns users birthday from contact table. Unfortunately if you are playing with liferay soap, userSoap does not carry this information.

However, it seems that from ContactService you could get this information if using soap.

- Lari
raghuraman mg
RE: Date and Month of user Birthday
21 de enero de 2009 2:02
Respuesta

raghuraman mg

Ranking: New Member

Mensajes: 12

Fecha de incorporación: 16 de diciembre de 2008

Mensajes recientes

Lari Tuominen:
liferay user (com.liferay.portal.model.user) has a method public Date getBirthday() that returns users birthday from contact table. Unfortunately if you are playing with liferay soap, userSoap does not carry this information.

However, it seems that from ContactService you could get this information if using soap.

- Lari



Thanks Mr.Lari

I got it...

Birthday Date :
<%
Contact contact1 = null;
contact1 = user.getContact();
Calendar birthdayCal = CalendarFactoryUtil.getCalendar();
birthdayCal.setTime(contact1.getBirthday());
//out.println(contact1.getBirthday());
int birthdayDate = birthdayCal.get(Calendar.DATE);
int birthdayMonth = birthdayCal.get(Calendar.MONTH)+1;
int birthdayYear = birthdayCal.get(Calendar.YEAR);
out.println(birthdayDate+"-"+birthdayMonth+"-"+birthdayYear);

%>
dola dola
RE: Date and Month of user Birthday
29 de noviembre de 2012 4:42
Respuesta

dola dola

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 29 de diciembre de 2011

Mensajes recientes

Hi,
Can i display all users birthday on new portlet?..

thanks emoticon
Shankar Baba
RE: Date and Month of user Birthday
29 de noviembre de 2012 5:07
Respuesta

Shankar Baba

Ranking: Regular Member

Mensajes: 144

Fecha de incorporación: 17 de octubre de 2012

Mensajes recientes

dola dola:
Hi,
Can i display all users birthday on new portlet?..

thanks emoticon



Yes , try with calendar or dynamic data display list,hope this will helps u.


Regards,
Shivaji
dola dola
RE: Date and Month of user Birthday
3 de diciembre de 2012 3:52
Respuesta

dola dola

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 29 de diciembre de 2011

Mensajes recientes

Thanks Shivaji emoticon ,,
At first i`m working with Liferay 6.0.5 , my task is "display 2 rows the first is user name and the second is birthdays of all users ".
i cannot find dynamic data display list , so i try to work on calendar . now i need to link between user birthday and calendar (birthdays of all users in the community consider event with type birthday and screen name is the title of event )
and add birthday tab in calender that display all birthdays of all users .
is there easier scenario than this to this task ?? .. can u help me ?

thanks emoticon