cancel
Showing results for 
Search instead for 
Did you mean: 

Appointement Calendar. Color appoint depend from status

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Any body ideas?

Former Member
0 Kudos

Have a look at the method RETRIEVE_APPOINTMENTS of the class CL_CRM_CALE_CALENDAR_IMPL.

here a table with all appointments is being built. every entry contains a field names "color", i think here you can implement your requirement.

Former Member
0 Kudos

Hi, Tobias

Thank you.

One small question:

format of the color? (example)

Edited by: Denis Khveshchenik on Nov 25, 2010 2:05 PM

Former Member
0 Kudos

maybe you can try hex-codes, e.g. "#EFEFEF" or common names like "red"

Former Member
0 Kudos

We have checked you idea with color = "#EFEFEF" or "red" -but it's not work (((

Field color by default is empty in the structure, but color of appointment is blue in the Web UI(

Do it's really work?

Former Member
0 Kudos

Unfortunately,

I think this idea is not work.

Former Member
0 Kudos

Any ideas?

Former Member
0 Kudos

Hi Denis,

We too have a similer requirement, where we need to set the color of an appointment in sap crm web ui calendar.

If the appointment is in future it's color should be let's say Yellow.

If the appoint is completed its should be in Green.

If the appointment is missed and over due it should be in Red.

Can you suggest me how we can achieve this? Thanks

Regards,

Mohan

Former Member
0 Kudos

HI, Mohan Venna       

Unfortunately, we have't resolved this issue.

Possible, where are solution...