cancel
Showing results for 
Search instead for 
Did you mean: 

specify attributes in a node dynamically

Former Member
0 Kudos

Hi all,

I have an empty node. I want to fill it with attributes at runtime. How can I do this?

Regards.

Ali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to get the meta data info of node in question then add the attribute.

If this may also require a get_child_node to get to the correct node first.


lr_child_node  = wd_context->get_child_info( ...)
lr_info = lr_child_node->get_node_info( ).

With the Node_info you add the attributes.

lr_info->add_attribute

regards

Phil

Former Member
0 Kudos

OK.

I was trying this.

lr_child_node = wd_context->get_child_info( ...)

lr_info = wd_context->get_node_info( ).

Obviously wasn't correct.

Thanks.

thomas_szcs
Active Contributor
0 Kudos

Hi Muhammand,

In the second you need to use the lr_child_node from the first line instead of wd_context.

Best regards,

Thomas

P.S: The type of lr_info is if_wd_context_node_info and lr_child_node is typed as if_wd_context_node.

Answers (1)

Answers (1)

Former Member
0 Kudos

'SET_ATTRIBUTE' method of IF_WD_CONTEXT_NODE???