cancel
Showing results for 
Search instead for 
Did you mean: 

adding attribute values to node in NWDS 7.1 web dynpro java

NarendraChandel
Contributor
0 Kudos

Hi experts,

I have the below node structure:

Node A

Node B

Attri name

Attri age.

Now using web dynpro java(NWDS 7.1) i want to add attributes values to the node.

I was able to do the same thing in NWDS 7.0 But the same code is not wokring for NWDS 7.1

please help.

Regards

Narendra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can just click with the right button on the mouse and Add new attribute.

Regards

Marcos

Answers (3)

Answers (3)

Former Member
0 Kudos

The 7.0 code must work in 7.1. Can you please post it?

Armin

Former Member
0 Kudos

hi

there is no difference is adding attributes or values to the node in the any of the EP versions

either EP 7.0 or CE 7.1 studio , try again by creating a new node and attribute to it , and for

more search in the SDN there would be docs for creating new applications in CE 7.1 studio .

Thanks

NarendraChandel
Contributor
0 Kudos

Hi,

Thanks for reply, but i know how to add attributes to a node.

here what i want is i want to assign values to the attributes of the node dynamically through coding.

hope this makes the question little clearer.

thanks

narendra

Former Member
0 Kudos

Ok, now is clear...

Try this:

IWDNode node = wdContext.getChildNode("NodeName", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
nodeInfo.addAttribute("AttributeName", "ddic:com.sap.dictionary.string");

Regards

Marcos