Skip to Content
avatar image
Former Member

display views depending on the selection of radio button

Hi Gurus,

            i am new to webdynpro java (previously i was worked on enterprise portal)

            Suppose i have 3 radio buttons & one Main view and  3 views

            in main view we have 3 radio buttons in these 3 buttons user can select only one button

            depending on the selected radio button the view will be displayed

             (For eg if i select first radio button view1 will be displayed,  if i select second radio button view2 will be displayed,if i select third radio button view3 will be displayed)

i have one more doubt

            is it possible to activate four BAPI's by clicking only one button.if it is possible let me know

    (Eg:i have submit button by clicking on this button four bapi's(one,two,three,four) will be activated sequentially)

Please share the code to do this

Please help me,

Thanks in advance,

Fayaz Shaik.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 22, 2012 at 12:35 PM

    moved to Web Dynpro Java by moderator

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2012 at 01:58 PM

    WebDynpro is all about Dynamic Programming, you can custom code to detailed specifications.

    1). You can define navigation to specific views using radio buttons. you may also use Buttons and actions for the same.

    2). You can trigger as many models as you need, you will have to write the code for it. Using Apply Template option simplifies many steps for executing models.

    3). How to create and execute models ? just search SDN, tons of info in that area. Many tutorials on consuming sample BAPI get flight list.


    -Amol Gupta

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2012 at 12:34 PM


    Below are the detailed steps you can follow to implement your requirement.

    1. Create Simple Type say RadioChoices and give the Text of the Radion Buttons as you want to display like "ONE","TWO,"THREE".

    2. Add RadioButtonGroupByKey UI Element to the View which you have created.

    3. Create a new Context Attribute and change the type of it from String to the new Simple Type created above in step1.

    4. Bind the Context Attribute Created to UI Element added for the selectedKey property.

    5. Add on event for OnSelect say "selectRadioButton".

    6. You can add the codelike in the method created above.



          //Link to Iview1


      else if(wdContext.currentContextElement().getRadioType().equalsIgnoreCase("TWO"))


        //Link to Iview2




    //Link to iview3


    Add comment
    10|10000 characters needed characters exceeded