cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar Month View problem.

Former Member
0 Kudos

Hi everyone.

Has anyone used the CalendarMonthView UI element.

After placing it in a normal view, all I get is a NullPointer Exception in the WD code.

Does anyone know what properties are obligatory?

Thanks in advance.

George Daloukov

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi George,

In ur value node,u check the cardinality=1..n, selection =0..1, singletone=true,

and ur attripute type=date

Regards,

vino

Former Member
0 Kudos

Hi Raja,

this was it. Thank you VERY much ))

I just haven't placed the date attribute in a node.

Now I can move on.

Thanks again.

Cheers,

George.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi George,

First create 1 attribute with type as date then bound that attribute to an UI element....

Regards,

Suresh.T

Former Member
0 Kudos

i have an attribute for the starting date(it is cctDate as requested by the WD) and it is bound to the firstVisibleDate property...

anything else?

cheers,

george.

Former Member
0 Kudos

Hi,

u create another attribute then bound that to lastSelecteddate property....then try again..

Former Member
0 Kudos

Hi George..

Have you bound the values for dayselect,monthselect etc....If not, bound the values and execute..

And can u tell me in which part of coding do u have error?

Urs GS

Former Member
0 Kudos

Hi GS,

I have bound firstVisibleDate to a cctDate value.

Also have created 2 actions for onDaySelect and onEntrySelect.

The problem comes before I can actually see the calendar itself:

java.lang.NullPointerException

at com.sap.tc.webdynpro.clientserver.uielib.calendar.uradapter.CalendarMonthViewAdapter.setViewAndNodeElement(CalendarMonthViewAdapter.java:178)

Former Member
0 Kudos

Hi George...

Clear me tht when u get the Exception while design time or run time... Becas while if u get it at design time , then it will be problem with your NWDS...

Urs GS

Former Member
0 Kudos

Hi GS,

this is a runtime error.

When I enter the view, it crashes with that error.

The view itself has nothing else in it.

regards,

George.

Former Member
0 Kudos

Ok. I think u r trying to use the pointer or object in a method , tht may not be initialized before. So tht you can get nullpointer exception.. Check with your coding and reply...

Former Member
0 Kudos

I don't think that's a problem of coding.

I have just added the calendarMonthView in the Web DynPro perspective and bound the needed properties to a context. That's it...

I cannot see the calendar in the Design Time also...

it says: CalendarMonthView: rendering problem: null.

That's why I was asking if someone knew what properties are obligatory for the correct initialisation of that specific UI element.

regards,

George.