Foros de discusión

How to create a custom dropdown field in Event portlet and configure?

Shibu K V, modificado hace 11 años.

How to create a custom dropdown field in Event portlet and configure?

New Member Mensajes: 13 Fecha de incorporación: 28/11/12 Mensajes recientes
In Event portlet, I want to create a custom drop down field like "Site Member" (or User). Then the event should be shown to only the selected site member instead of showing to all.. How can i configure this? Its easy to create custom field, but how to populate all site members dynamically? And how to hide events from other site members other tan the selected one? Please help.........
Shibu K V, modificado hace 11 años.

RE: How to create a custom dropdown field in Event portlet and configure?

New Member Mensajes: 13 Fecha de incorporación: 28/11/12 Mensajes recientes
I found that it is possible to create a custom drop down field like User and it will populate all Power users. The code is which is added in "edit_event.jsp" is;
<aui:select name="User">
<%
for (User usr : UserLocalServiceUtil.getRoleUsers(10163)) {
%>
<aui:option label="<%=usr.getFullName()%>" />
<%
}
%>
</aui:select>
But it will not create any column in CalEvent tabe wih the new field "User"... So now my requirement is, I want to create a mapping table which should save "event id and user id". And that mapping table should be updated when event is Saving.......So that before showing events to the users i can check it.
How to achive this? Please help...