on 05-12-2008 1:59 PM
Hi,
How can we creat an context element and bind it to the parent context node?
Thanks & regards,
Sujit
Hello,
Please refer to this: [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4345] [original link is broken] [original link is broken] [original link is broken];.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
on parent context node right click of mouse and create attribute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
right mouse click on node for which you want to create attribute (node). This way it belongs to this node.
If you want to create a subnode, do the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sujit,
plz find the code to add an element dynamically below.
DATA l_node TYPE REF TO if_wd_context_node.
DATA : l_element TYPE REF TO if_wd_context_element
"get the parent node
l_node = wd_context->get_child_node( name = 'parent_node').
" create an element
l_element = l_node->create_element( ).
"set the attributes for the element
l_element->set_attribute(
EXPORTING
value = lv_value " Attribute Value
name = 'attribute_name'" ).
"bind the element to parent node
l_node->bind_element(new_item = l_element ).
with regards,
ajay
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.