cancel
Showing results for 
Search instead for 
Did you mean: 

DateNavigator related issue - IMarkingElement.setCategory to have 5 values

Former Member
0 Kudos

Hi Experts,

I have created one WD program which uses DateNavigator. The code is working fine.

				IMarkingElement m = wdContext.nodeMarking().createMarkingElement();
				m.setCategory(WDDateMarkingCategory.ONE);
				m.setDate(start);

For the above code, we can have only four values of WDDateMarkingCategory. The values are WDDateMarkingCategory.ONE, WDDateMarkingCategory.TWO, WDDateMarkingCategory.THREE and WDDateMarkingCategory.FOUR.

For my project we want to have 5 Categories. So, WDDateMarkingCategory.FIVE is also needed.

How we can have 5 categories?

Regards,

Gary

Accepted Solutions (0)

Answers (5)

Answers (5)

christiansche
Active Participant
0 Kudos

You have:

IMarkingElement m = wdContext.nodeMarking().createMarkingElement();

m.setCategory(WDDateMarkingCategory.ONE);

m.setDate(start);

you need:

IMarkingElement m = wdContext.nodeMarking().createMarkingElement();

m.setDaySemantics(WDTableCellDesign.ONE);

m.setDate(start);

best regards,

Christian.

Former Member
0 Kudos

Could not get any answer

ravindra_bollapalli2
Active Contributor
0 Kudos

Thanks. Do you mean that I have to use Class WDTableCellDesign and I can have many colors. I am looking into following link:

http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/com/sap/tc/webdynpro/clientserver/uielib/s...

if we use the wd tablecelldesin for a datenavigator might be issue wil be solved

/people/sap.user72/blog/2006/04/25/colourful-table-in-web-dynpro

let me know am i correct or not

ravindra

Edited by: VENKATA R BOLLAPALL on Aug 7, 2009 12:54 PM

Edited by: VENKATA R BOLLAPALL on Aug 7, 2009 12:55 PM

Former Member
0 Kudos

Hi Ravindra,

WDTableCellDesign is not helping. WDTableCellDesign is basically for the table. How I can use it for the date navigator?

Regards,

Gary

Former Member
0 Kudos

Hi,

Refer these links,

http://help.sap.com/saphelp_nw04/helpdata/en/4a/05ad3e1d1edc61e10000000a114084/frameset.htm

/people/ramamurthy.rajan2/blog/2007/03/14/custom-datenavigator-in-bsp-using-mvc-architecture

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi Experts,

I am unable to sort out the issue. I am writing my issue again:

I want to use Calendar for my WD program. There are following statuses:

1) Business trip from date1 to date2

2) Conferecnce from date1 to date2

3) Board Meeting from date1 to date2

4) Training from date1 to date2

5) Deputationfrom date1 to date2

6) Secondment from date1 to date2

We want to create calendar and show different statuses by using different colors.

How to do it?

Regards,

Gary

ravindra_bollapalli2
Active Contributor
0 Kudos

hi gary,

check this thread,

and look this api given by the sap

http://www.petsounds.org/sapjavadocs/webdynpro/com/sap/tc/webdynpro/clientserver/uielib/standard/api...

as u told that we have four categories, fifth one we can add as the default one

so total we have 5

u can try in that way

let me know u need any further information

bvr

Former Member
0 Kudos

Hi BVR,

I tried and can not find any thing called WDDateMarkingCategory.DEFAULT in NWDS coding.

The following link provided by you is not getting open due to proxy setting of my customer. Can you please paste the message here only.

http://www.petsounds.org/sapjavadocs/webdynpro/com/sap/tc/webdynpro/clientserver/uielib/standard/api...

Regards,

Gary

ravindra_bollapalli2
Active Contributor
0 Kudos

hi gary,

the

IWDDateNavigatorMarking.getCategory()

Deprecated. This property may be withdrawn with the first new NetWeaver release in 2006 as it is no longer needed. Use the property daySemantics instead to mark a certain day. The Legend UIElement is used to describe the semantic meaning of daySematics color code.

u can refer this link for more information

http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/com/sap/tc/webdynpro/clientserver/uielib/s...

i wll put some more related information for u

le me know u need any further information

bvr

Former Member
0 Kudos

Hi BVR,

Thanks. Do you mean that I have to use Class WDTableCellDesign and I can have many colors. I am looking into following link:

http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/com/sap/tc/webdynpro/clientserver/uielib/s...

Regards,

Gary

ravindra_bollapalli2
Active Contributor
0 Kudos

hi gary,

as the per the document given by sap we have to use the

https://cw.sdn.sap.com/docs/DOC-16792;jsessionid=17412428C92D815B7D4D02B4F3B5CEC6

https://wiki.sdn.sap.com/wiki/display/Snippets/CreatingaColorLegendinaTableinWeb+Dynpro

http://santy.wdfiles.com/local--files/web-dynpro/table_capabilities.pdf

if this above link suits u verywell or

let me know if we still getting the same error ??

bvr

Edited by: bvr on Jul 27, 2009 9:21 AM

Edited by: bvr on Jul 27, 2009 9:55 AM