on 12-22-2008 3:09 AM
Hi,
I'm using a DateNavigator and trying to highlight the dates in individual colours.
1.) The documents on help.sap.com indicate that I am supposed to change the colours using the WDTableCellDesign class since the older WDDateMarking is deprecated.
2.) I cant seem to do that since the "category" property can only be bound to WDDateMarking types.
3.) Also, when I bind the appropriate WDDateMarking type to the context - there is no effect on the screen - I cannot see any colour changes - Are themes involved somewhere?
4.) Just to Add - on binding the category in the context to the Marking UI Element - I get the Messge to select "DateMarkingCategory" which is non-existent. WDDateMarkingCategory exists but we cannot bind that to the Marking UI Element.
Is there a tutorial for 04S on using DateNavigator and highlighting dates? Or a way to solve this problem?
Please help.
Thanks.
p256960.
Marking this as answered - I guess this is not possible or is a know issue with the DateNavigator in the 04S platform.
Thanks.
p256960
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case the following help document helped me...
http://help.sap.com/saphelp_nw70/helpdata/EN/4a/05ad3e1d1edc61e10000000a114084/frameset.htm
have you read this ?
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I've understood from the link you've provided how I can set the Background Color and I have modified my code. However, Even after creating the context and the elements and setting the values in the View wdDoInit() I am not seeing any changes on the screen.
The simple normal date navigator is shown on screen.
My Code for the Init():
IPrivateCalendarAppView.IDatasourceNode node = wdContext.nodeDatasource();
IPrivateCalendarAppView.IDatasourceElement element;
for(int i=13;i<23;i++){
element = node.createDatasourceElement();
element.setDate(new java.sql.Date(2008,12,i));
if(i%2 == 0){
element.setDaysemantics(WDTableCellDesign.CRITICALVALUE_DARK);
element.setTooltip("Leave Day!!! :)");
}
node.addElement(element);
}
Just to add: My View Element Layout is as follows:
Root
|--->DateNavigator
|---> Marking
Any further suggestions?
Thanks,
p256960.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.