on 07-17-2008 11:15 AM
Assuming there is a view by the name MAIN and its context has a node called TABLE. This node is to be used to fill up the texts for a radiobuttongroup by index element.
We have something like IF_MAIN=>ELEMENT_TABLE available to declare a table to fill up the values.
something like
data : itemlist type table of if_main=>element_table.
But in my case i am creating the context node dynamically. Is there a generic type available using which i can declare my table?
Hi Udaya,
Yes, declare your element itab with type wdr_context_element_set (table of ref to if_wd_context_element).
Here is a code sample:
method your_method.
data:
lo_elem type ref to if_wd_context_element,
lt_elem type wdr_context_element_set,
node type ref to if_wd_context_node.
* Get the node
node = wd_context->get_child_node( name = 'TABLE' ).
* Get the items
lt_elem = node->get_elements( ).
* Process the elements
loop at lt_elem into lo_elem.
endloop.
endmethod.
Regards... Lucio Menzel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.