Skip to Content
0
Former Member
May 19, 2005 at 03:53 PM

problem with setting the value of a model attribute

24 Views

Hello,

In the controller's context I have some model

nodes and attributes (this structure is mapped

into another structure in the data layer).

I want to set the values of these model attributes

from Java code. I am seting the value the

following way:

int docId = 5;

wdThis.wdGetDocumentController().wdGetContext().nodeRequest_DocumentsSoap_updateDoc1().nodeChanges().nodeUpdateDoc1Dinfo().currentUpdateDoc1DinfoElement().setDocId(docId);

This compiles and runs without any errors, but

when I check if the value has been set, it appears

that it is null. I am checking the current value

of the model attribute this way:

wdThis.wdGetDocumentController().wdGetContext().nodeRequest_DocumentsSoap_updateDoc1().nodeChanges().nodeUpdateDoc1Dinfo().currentUpdateDoc1DinfoElement().getDocId();

So it seems that even though the model nodes/attributes

appear in the mapping editor, at runtime they do not

exist. Why?

Thanks a lot in advance for any help.

Greetings,

Tomek.