Skip to Content
0
Former Member
Apr 06, 2006 at 05:48 PM

Can't set an attribute in Context

19 Views

Hi WebDyn Pro's,

I have a very basic question I think. I snooped thru several tutorials and sample code and I can't figure out why my code fails. It seems to me that I'm doing nothing different than the sample code.

I have one View in my project. I have a context node named "MyData". In the doInit method of the one View, I have the following code:

<b>wdContext.currentMyDataElement().setName("John"):</b>

This lines throws a nullPointer Exception.

Any ideas?

Thanks

Kevin