cancel
Showing results for 
Search instead for 
Did you mean: 

Call Views based on input field value in webdynpro for abap

pavanm592
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

edwinguedez
Explorer
0 Kudos

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