on 2016 Sep 16 11:25 AM
Dear all,
I am working on a webdynpro application the requirement is like this based on the user selection need to display different graphs,My default view has an element DropDownByIndex which has 7 entries,i need to call different views on each entry selection on my default view,
my question here is how to call different views dynamically based on the user input .
Thanks,
Pavan
Follow the steps:
A. In your source view
1.- Create one Outbound-plug for every target view
2.- In the action code (I guess you had a button) read the DropDown selection
3.- Using a "CASE" call the corresponding fire method for every outbound-plug
Eg. CASE dropdownselection.
when '1'. wd_this->fire_PLUG_1_plg( ) .
when '2'. wd_this->fire_PLUG_2_plg( ) .
when '3'. wd_this->fire_PLUG_3_plg( ) .
when '4'. wd_this->fire_PLUG_4_plg( ) .
when '5'. wd_this->fire_PLUG_5_plg( ) .
when 'etc'. wd_this->fire_PLUG_ETC_plg( ) .
ENDCASE.
B. Create an Inbound-plug in every target view.
C. Add all the views (Source and targets) to your window
D. Link all the outbound-plugs of your source view with the corresponding inbound-plug of every target view
Let me know if you want images
regards
Edwin Guedez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.