cancel
Showing results for 
Search instead for 
Did you mean: 

Error at set_attribute

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Kudos

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 ).