on 07-21-2006 3:16 AM
Hi All,
I am new to WebDynpro. Already i have created RadioButtonGroup sucessfully.
My problem is while update mode i have to set particular radio button as selected. How can i do?. Please help me.
By
Kiran.
Hi Mody,
If you are using List to create RadioButton creation use the following code. If Node name is xxx then you can select 4th button as default selected.
wdContext.nodeXXX().setLeadSelection(4);
Kind Regards,
S.Saravanan.
Message was edited by: Saravanan S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Use the following steps.
Step 1:
Create node(Frequentie) with some attributes.set cardinality to 0..n and selection to 0..1
Step 2:
Bind this node to RadioButtonGroupByIndex's texts property.
Setp 3:
Inside DoInit() write the following codes.
Create one List
List recurenceType = new ArrayList(); int x=0;
while(x<10){
<View Name>.IFrequentieElement elefreq=wdContext.createFrequentieElement();
String id="Sample"+x;
elefreq.setId(id);
recurenceType.add(elefreq);
}
Step 5:
Bind this List into Frequentie node.
wdContext.nodeFrequentie().bind(recurenceType);
setp 6:
If you want to 5th item selected as default.
wdContext.nodeFrequentie().setLeadSelection(4);
<b>Valuable Answer=Point</b>
Kind Regards,
S.Saravanan
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.