Skip to Content
avatar image
Former Member

Error at set_attribute

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 18, 2017 at 12:32 PM

    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 ).
    Add comment
    10|10000 characters needed characters exceeded