Skip to Content
author's profile photo Former Member
Former Member

Radio Buttons in Web dynpro

Hi Experts,

I need to develop a radio button group in a layout.

I have around 21 questions in my layout where user has to answer "Yes" or "No" for each question.

So for doing this i need to develop 21 radio groups and also put some code for this in wddoinit method of the respective view.?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Nov 20, 2012 at 08:36 AM

    Hi,

    Yes, you have to create and put code in WDDOINIT method or in MODIFYVIEW method if first_time = .X'.

    Regards,

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2012 at 12:29 PM

    Create a Node in component controller with 21 attributes and initialize their values with X in WDDOINIT

    method then map this node with view controller then insert 21 radio button in view form library and map the radio button with 21 attributes which you have created earlier

    Thanks

    Ashish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2012 at 01:09 PM

    Hi Venkat,

    Check out the two views named RADIOBTN* in web dynpro component WDR_TEST_EVENTS for examples, and also check out the documentation for RadioButtonGroupByKey and RadioButtonGroupByIndex.

    If you use RadioButtonGroupByKey and the domain behind the selectedKey property has a value set, the radiobutton group texts will be automatically pulled from the domain, for example domain HR_YES_NO.

    If you use RadioButtonGroupByIndex, you provide the texts manually by binding to a 0..n context node. You can populate this node with radiobutton group text with a supply function.

    You can either create 21 radiobutton groups in your view layout, or maybe you can make use of a MultiPane to create the 21 radiobutton groups for you.

    Cheers,

    Amy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.