on 11-20-2012 8:22 AM
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.?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, you have to create and put code in WDDOINIT method or in MODIFYVIEW method if first_time = .X'.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.