cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting Views Based On Radio Buttons

Former Member
0 Kudos

Dear Mentors,

I have a query regarding that  I wanted to create a WD Application in Which I a having 3 views say :

View 1 :  2 Radiobuttons( R1 & R2)

View 2    Screen for R1

View 3    Screen for R2

Now query is How could I switch between the views based  on radiobutton selection.. Like if R1 is selected on click on Next Button, View 2 will open..

I am very new to WD help, Help is highly appreciated.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member222068
Active Participant
0 Kudos

Hi Fox Wilson,

1. Create the view with a radiobuttongroupbyindex ui element

2. Define context binding texts property the attribute

3. Implement the code in the WDDOINIT( ) of the view

4. Define navigation between the view as shown. To navigate between the view, we have to define navigation link between outbound plug of source view ( View1 ) and inbound plug of target view ( view2 and View 3 )

5. To define navigation link, to the window and assign the views to the window and define the navigation link.

6. Drag and drop outbound plug( To_view2 and to_view3 ) on to inbound plug of ( from_view1 of vie2 and from_view1 of view3 ) respectively.

7. create an event onaction and implement the code

Implement the code in the event 'NAVIGATE'

Execute the application:

select the second radio button

Note: Let me know if you have any quires

Thanks & Regards,

Sankar Gelivi

Former Member
0 Kudos

Thanks Sankar, But I am done with requirement,, But thanks everyone.

Former Member
0 Kudos

Hi,

  • In radio button UI property ON_SELECT give any action .
  • when pressing the radio button this action will trigger.
  • Inside this action y can get which button is selected (based on index or key).
    • If it is by index using IF_WD_CONTEXT_NODE->get_lead_selection_index( ) u can get index nubber of radio button.

  • If R1 selected,

          fire r1 plug

      else if r2 is selected,

           fire R2 plug.

Former Member
0 Kudos

Hi,

Go through below link.  http://webdynproabap.wordpress.com/2012/07/06/radio-button/      hope this helpful for you.

Former Member
0 Kudos

you can use event ON_SELECT of radio button and  fire plug in this event .

for navigation using plug go through below link.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/308ebfe9-a07a-2c10-e494-9849d50ef...