cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Radio Button

BuckeyeScott
Explorer
0 Kudos

I have created a radio button to be used as part of the selection criteria for a specific program.  However, the radio button is appearing twice.  For some reason, it's duplicated.  Can someone please tell me why the radio button is appearing twice and not once?

Here is how it appears:

Here is the definition on the View:

Here is the context used:

Here is the Java code:

wdDoInit() ...

wdContext.nodeReport_Type().invalidate();

IPrivateEquipmentCatalogSelection.IReport_TypeElement ReportType = null;

ReportType = wdContext.createReport_TypeElement();

ReportType.setOption("Run Report by Equipment");

wdContext.nodeReport_Type().addElement(ReportType);

   

ReportType = wdContext.createReport_TypeElement();

ReportType.setOption("Run Report by Equipment / Material");

wdContext.nodeReport_Type().addElement(ReportType);

wdDoModifyView ...

if(firstTime)

{

     IWDTransparentContainer rootContainer = (IWDTransparentContainer) view.getElement("RadioButtonGroup");

     IWDRadioButtonGroupByIndex radioButtonGroupByIndex = (IWDRadioButtonGroupByIndex)view.createElement IWDRadioButtonGroupByIndex.class,"rbgi_1");    

     radioButtonGroupByIndex.bindTexts(wdContext.nodeReport_Type().getNodeInfo().getAttribute("Option"));

     rootContainer.addChild(radioButtonGroupByIndex);

}

Accepted Solutions (1)

Accepted Solutions (1)

BuckeyeScott
Explorer
0 Kudos

Never mind.  I changed the logic to use the RadioButtonGroupByKey and it's working properly.

Answers (0)