Skip to Content
avatar image
Former Member

adding attribute values to node in NWDS 7.1 web dynpro java

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    May 26, 2009 at 01:12 PM

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

    Regards

    Marcos

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2009 at 01:15 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 26, 2009 at 01:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 26, 2009 at 01:34 PM

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

    Armin

    Add comment
    10|10000 characters needed characters exceeded