on 07-21-2011 7:52 AM
Hi
Can anybody help me with an explanation for the same code used in two different programs one showing error.
The code which shows is correct is as below ( The code is written in method WDDOINIT).
Data : v_Element type ref to If_Wd_Context_Element,
Items_node type ref to If_Wd_Context_node,
v_Index type i,
v_Text type string,
itemList type STANDARD TABLE OF IF_INIT=>ELEMENT_radiogroup,
w_list LIKE LINE OF itemList.
itemList type STANDARD TABLE OF IF_INIT=>ELEMENT_radiogroup, -
> In this code my undestanding is that radiogroup is the node that i have created.
Similarly I did other coding as below.
data : v_element type REF TO if_wd_context_element.
data : level_node TYPE REF TO if_wd_context_node.
data : v_index type i.
data : v_text TYPE string.
data : it_levels TYPE STANDARD TABLE OF IF_INIT=>ELEMENT_levels,
w_list LIKE LINE OF it_levels.
In which my understanding is that ELEMENT_levels is the node created for the view.
The type "IF_INIT=>ELEMENT_LEVEL" is unknown.
please help me out of this as i am new to webdynpro.
Regards
Deric
Hello Deric,
what is your view name. I hope its not INIT. replace IF_INIT-element_level with IF_<view_name>-element_level.
Better practice would be to use WD_THIS->ELEMENT_LEVEL where WD_THIS by default will refer to the generated interface of the view.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.