cancel
Showing results for 
Search instead for 
Did you mean: 

Switching between views based on radio Button

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 (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Wilson,

     You get get this easily by setting the visibility.

    In view 1 place the two radion button & two view container UI element, which holds other view. Now  bind the  visibility property of the view container element with a attribute of type 'WDUI_VISIBILITY' .   Embeed your other two views in these view containers.

 

   Now in the action of the radio button set the value of the attribute & display your required view.

Regards,

Monishankar Chatterjee

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Everyone, I have managed the solution exploring SCN...Thanks all for your valuable advice.

Former Member
0 Kudos

Hi Wilson,

                Adding to the earlier comments,here are some few links related to your problem,might be useful to you.

http://scn.sap.com/thread/1570510

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0aba847-ff58-2c10-4a98-c0fad334c...

http://scn.sap.com/thread/3189083

former_member230486
Contributor
0 Kudos

Hi Wilson,

1) Create one context node with attribute with cardinality 0..n, which you want to display as radio    button.

2) Create one radio button group by index ui element.

3) Bind the attribute to Texts  property of Radio button group by index

4) In the Onselect method write write code as shown below,

5) First read the context node by using code wizard.

Former Member
0 Kudos

Hi Wilson,

Go through below link.

http://webdynproabap.wordpress.com/2012/07/06/radio-button/

hope this helpful for you.