Skip to Content
author's profile photo
Former Member

add an element to a node.

Hi,

Any help to add an element to a node.

I have a node in a view context and I would like to add its content to a component controller context node which has the same structure ( subnodes and attributes) .

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Apr 21, 2011 at 07:00 AM

    Hi dyngry,

    So what is stopping you to add the new attributte to the context node in the component controller. Just right click and add attribute of that type.

    I think you have keep the dictionary structure of some type and from that you have added attribute as add attribute from structure. Now this is going to stop you to add other attribute which is not in the structure.

    You can remove the dictionary structure from the field as i think it is not going to effect , then add one attribute.

    Alternatively create a node in component controller with required attributes and map it with the view context.

    In case of any issue reply.

    Regards,

    Monishankar C

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I think we can't add the element from the view context to the compponent contytroller's context. But you can acheive your requiremnt as below.

      1. Create a method "ADD_NEW_PLAYER" in your component controller which has importing parameter as a node i.e. "IF_WD_CONTEXT_NODE"

      2. Now inside the method "ADD_NEW_PALYER" Read the attributes from the incoming node. Append this structure to the component controllers node.

      3. In your View just call this method by passing the context node of the View. (You should be able to call the component controller method anyway so you have to basically append the filled in data to the compoenent controller.)

      I hope it would be of any help for you.

      Regards

      Vineet

  • Posted on Apr 21, 2011 at 06:45 AM

    Hi,

    You can map Component controller context to view context but vice versa is not possible.

    cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 05, 2011 at 11:29 AM

    Can not be done.

    I added a node of node to achieve it.

    Add comment
    10|10000 characters needed characters exceeded