Skip to Content
0
Former Member
Apr 25, 2007 at 01:23 PM

setting value to a node attribute

7 Views

Hi,

I am simple view.

Context of the view has a node "Data" :cardinality :0..n , Selection 0..1

Attribute of Node "Data" is "text".

I am trying to set a value to the text attribute in the wdDoInit() of the view Implementation

wdContext.CurrentDataElement.settext("abc");

During runtime i am getting Null pointer exception.

Please explain me whether before setting the value to the attribute do i need to create that attribute element or i need to changed the propertiese of node or anything else ?