on 11-18-2009 9:53 AM
HI ,
The code which we put in the WDDOINIT metod is as follows
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ). " What is WD_CPUSE
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL. "What is active component
l_ref_cmp_usage->create_component( ).
ENDIF.
lr_interfacecontroller = wd_this->wd_cpifc_select_options( ). " What is WD_CPIFC
wd_this->m_select_options =
lr_interfacecontroller->init_selection_screen( ).
could any one please explain what is happening actually with the above code
Regards
Hi,
the first three line
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
of your code is creating the used component.
then this line
lr_interfacecontroller = wd_this->wd_cpifc_select_options( ).
is used to get a pointer to the interface controller of the select options component.
regards,
anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
this means that we are re using the comp WDR_SELECT_OPTIONS in the view of your component.
to access all the methods of the component WDR_SELECT_OPTIONS we need to add it in the view which u want to use selection options methods
i.e you are using the method add_selection_field to populate the field on th screen.
to access this method we need to embed them in the view.
Priya
hi
there is a tutorial on SDN regarding this ;
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
the tutorial is getting opened for me
or search for
WDA Tutorial II: Using Select Options in a WDA Application
on SDN , the code is expalined step by step in the tutorial
cheers:)
regards,
amit
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.