Skip to Content
0

Error at set_attribute

Sep 18, 2017 at 12:09 PM

25

avatar image
Former Member

Hi,

in my Context of an view i have an node "TABELLE" with an element "BNAME_NAME".

in my coding i have these 2 statements:

wd_context->get_child_node( name = 'TABELLE').
wd_context->set_attribute( name = 'BNAME_NAME' value = lv_name ).

i got an dump after the "set_attribute" statement saying

"ERROR: Could not find attribute BNAME_NAME (termination: RABAX_STATE)"

Any ideas why this occurs ? i have set the right child node before !

br Martin

capture.png (35.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mike Pokraka Sep 18, 2017 at 12:32 PM
0

You are trying to set an attribute of wd_context, which is the root node.

wd_context->get_child_node( name = wd_this->wdctx_tabelle )->get_element( 
    )->set_attribute( name  = `BNAME_NAME` 
                      value = lv_name ).
Share
10 |10000 characters needed characters left characters exceeded