on 01-12-2016 7:29 PM
Hi people!
I have a problem to set a checked radiobutton in method init of my view.
First, i have a RadioButtonGroupByIndex how this image below:
This is the context:
But the atributte desc is text and id is integer. I dont understand how i make to have a checked radiobutton!
Below, i have the code of the method in the init. This code does to apper the description of two radiobuttons:
[code]
public void carregarAtribuicao( )
{
//@@begin carregarAtribuicao()
wdContext.nodeRdbAtribuicao().invalidate();
IPublicSSCComp.IRdbAtribuicaoElement atribuicaoElement1 = wdContext.createRdbAtribuicaoElement();
atribuicaoElement1.setDesc("Atribuição de custos para toda a solicitação");
atribuicaoElement1.setId("1");
wdContext.nodeRdbAtribuicao().addElement(atribuicaoElement1);
IPublicSSCComp.IRdbAtribuicaoElement atribuicaoElement2 = wdContext.createRdbAtribuicaoElement();
atribuicaoElement2.setDesc("Atribuição de custos por item");
atribuicaoElement2.setId("2");
wdContext.nodeRdbAtribuicao().addElement(atribuicaoElement2);
//@@end
}
[/code]
Now, how i check a radiobutton like this using RadioButtonGroupByIndex?
Thanks!
wdContext.nodeRdbAtribuicao().setSelected(0,true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.