Skip to Content
author's profile photo Former Member
Former Member

simpler way to move 1 attribute to another


in AWD i have 2 nodes and subnodes with attributes under the subnodes.

If I have a attribute that I want to move to another attribute, what is the simpliest way?

What I do now is GET the on and SET the other one. I use the wizzard to greate the code, but even for 1 attribute it is quite a lot of code.


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 23, 2011 at 07:13 AM

    Using SET and GET is the easiest and cleanest way in my opinion. In addition with the code wizard (which you said you use) it isn't really much work 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2011 at 07:14 AM

    You could create simple methods for GETting and SETting context attributes, then just invoke these from wherever you needed. Something like this:

    lv_my_attribute_value = wd_this->get_attribute( 'ATTRIBUTE1' ).

    then, for setting the next attribute:

    wd_this->set_attribute( exporting attribute_name = 'ATTRIBUTE2' value = lv_my_attribute_value ).

    In the get_attribute and set_attribute methods, you'd have code resembling the code from the wizard, just making it dynamically so that the attribute name could be passed to the methods. This would slim down the application considerably, compared to using the wizard everywhere.

    Hope this helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.