Skip to Content
0
Former Member
Sep 03, 2009 at 05:10 PM

Set Categories on DateNavigator

30 Views

Hey Everyone,

i am trying to mark the Datenavigator with two categories...

I made a context called Marking, with attributes Date, Category and Tooltip.

Node: Marking

-Date:

-Category:

-Tooltip:

I filled category attribute with two categories : e_category-three and e_category-four.

I filled the Date attribute with dates.. i want some of these dates to be category-three and others category-four.

Currenty, all dates are set to the first category(three)..

My code looks like this...

-


loop at lt_machine_booking into wa.

if ls_host_name-host_name = wa-host_name.

date = wa-reserved_from.

while date <= wa-reserved_till.

ls_dates_shared-dates = date. [i need these dates to be category-three]

append ls_dates_shared to lt_dates_shared.

add 1 to date.

ENDWHILE.

endif.

ENDLOOP.

elseif ls_host_name-host_name <> host_msg and ls_vm_name-vm_name <> vm_msg.

loop at lt_machine_booking into wa.

if ls_host_name-host_name = wa-host_name and ls_vm_name-vm_name = wa-vm_name.

date = wa-reserved_from.

while date <= wa-reserved_till.

ls_dates_shared = date. [i want these dates to be category-four]

append ls_dates_shared to lt_dates_shared.

add 1 to date.

ENDWHILE.

endif.

-


Thnaks for your help...