Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Appointement Calendar. Color appoint depend from status

Hi,

How we can customize appoint. calendar for the activity (task) for follow goal:

If user set status 1 - in the appointment we must see 'green' task

If user set status 2 - in the appointment we must see 'red' task.

in other words we have to set color in the appointment depend from status of the tasks.

How we can do this?

Tags:
replied

Hi Denis Khveshchenik,

I found one solution for this issue. I enhanced calendar_daily tag element handler class CL_CHTMLB_CALENDAR_DAY.

I added post exit for RENDER_APPOINTMENT( ). In that post-exit i used color attribute of appoinment value as background color.

IF NOT is_appointment-color IS INITIAL.

       CONCATENATE '<div style="background-color:' is_appointment-color '">' rv_html '</div>' INTO rv_html.

     ENDIF.

Now its working fine.

Regards

Vijay

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question