Skip to Content
0
Former Member
Jan 12, 2016 at 07:29 PM

How to set radio button RadioButtonGroupByIndex

19 Views

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!

Attachments

rb001.PNG (26.2 kB)
rb002.PNG (1.0 kB)
rb003.PNG (14.3 kB)
002.PNG (6.6 kB)