on 04-13-2009 11:28 AM
Hi expert,
I am tring to insert new columns to a table in the NetWeaver studio and need these columns with Radiobutton kind and grouped together..But the Radiobutton Group element cannot be dragged to the table.
And then I create two columns, and each has a radio button element. But these radio buttons cannot be grouped.
If you know the solution, please kindly enlighten me
Thanks in advance!
Just use a drop-down list instead.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guo,
if you want to gradio button behanes as group concept (only single radio button click at a time) then you have to binding only on context value attribute into each radio button in Table.other wise Group concept fail...
if you want to set the row in Table from Backend then you have to created row with radio button
suppose
Value Node--Person
attribute--Male,female,Maleselectokey,flemaleselectokey
Male,female-------two attribute Binding into SelectedKEy property of RadioButton
Maleselectokey,flemaleselectokey--two attribute Binding into KeyToselect property of RadioButton
for(int i=0;i<model size;i++)
{
wdContext.nodeperson().getPersonElementAt(i).setMale(false);
wdContext.nodeperson().getPersonElementAt(i).setFemale(false);
//
wdContext.nodeperson().getPersonElementAt(i).setMaleselectokey(true);
wdContext.nodeperson().getPersonElementAt(i).setflemaleselectokey(true);
}
Thanks
jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi GUO,
You can not create Group Radio button in Table but you can create number of culumn as per requirement and insert number of radio button which has put individual column.will create on context value attribute type should be boolean(click attribute and go to TYPE property of attribute and set boolean instead of String)
VAlue Attribute-radioTypeboolean.
set context attribute as radio set SelectedKey property of RadioButton Ui Element insividual.
suppose you have 3 radio button in 3Culumn then attribute as radio set each of radionbutton .it behaves as RadioGruop button.no need to create RadioGroup by index...
its sufficient
Thanks
jati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jati
I have met some issues.
1 For radio buttton, there is two attributes need to be set: keyToSelect, selectedKey. What's the difference? And how to set them?
2 Suppose adding 3 column (column1, column2, column3), each has a radiobutton (radiobutton1, radiobutton2, radiobutton3 respectively). Now, I still need to create a context value attribute (for example, radio_chose) with boolean type, and set the "selectedKey" attribute of each radiobutton with "radio_chose". Am I right?
3 If I do step2, when I first enter the screen, all the radiobutton are checked by default. Not only one checked.
Thanks.
Stephen GUO
Hi Murtuza
As per your reply, I successfully stimulated the Radio button group. The following is steps:
Create 3 radio button Radiobutton1, Radiobutton2, Radiobutton3
Set attributes as following:
Radiobutton1 Radiobutton2 Radiobutton3
keyToSelect T B X
selectedKey Cadme Cadme Cadme
When Cadme = T or B or X, Radiobutton1, Radiobutton2, Radiobutton3 will be checked respectively.
Cadme should have type: string
Thanks for your help
Stephen Guo
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.